Fix unitialized variable warnings.
This commit is contained in:
parent
82653d230d
commit
5220c0436c
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: fwohci.c,v 1.79 2003/10/22 09:02:49 mjl Exp $ */
|
||||
/* $NetBSD: fwohci.c,v 1.80 2003/10/26 19:10:42 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2000 The NetBSD Foundation, Inc.
|
||||
|
@ -49,7 +49,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: fwohci.c,v 1.79 2003/10/22 09:02:49 mjl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: fwohci.c,v 1.80 2003/10/26 19:10:42 christos Exp $");
|
||||
|
||||
#define FWOHCI_WAIT_DEBUG 1
|
||||
|
||||
|
@ -2168,8 +2168,10 @@ fwohci_arrq_input(struct fwohci_softc *sc, struct fwohci_ctx *fc)
|
|||
(pkt.fp_tcode == IEEE1394_TCODE_READ_REQ_BLOCK)) {
|
||||
len = (pkt.fp_hdr[3] & 0xffff0000) >> 16;
|
||||
naddr = ((u_int64_t)key1 << 32) + key2;
|
||||
} else
|
||||
} else {
|
||||
len = 0;
|
||||
naddr = 0; /* XXX: gcc */
|
||||
}
|
||||
for (fh = LIST_FIRST(&fc->fc_handler); fh != NULL;
|
||||
fh = LIST_NEXT(fh, fh_list)) {
|
||||
if (pkt.fp_tcode == fh->fh_tcode) {
|
||||
|
@ -3529,7 +3531,7 @@ fwohci_if_output(struct device *self, struct mbuf *m0,
|
|||
struct fwohci_softc *sc = (struct fwohci_softc *)self;
|
||||
struct fwohci_pkt pkt;
|
||||
u_int8_t *p;
|
||||
int n, error, spd, hdrlen, maxrec;
|
||||
int n = 0, error, spd, hdrlen, maxrec; /* XXX: gcc */
|
||||
#ifdef FW_DEBUG
|
||||
struct mbuf *m;
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue