Quell an uninitialised variable warning.
This commit is contained in:
parent
e591e98c92
commit
7a4dfd98e4
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pci_subr.c,v 1.53 2002/09/21 19:14:14 drochner Exp $ */
|
||||
/* $NetBSD: pci_subr.c,v 1.54 2002/11/24 11:55:13 scw Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1997 Zubin D. Dittia. All rights reserved.
|
||||
|
@ -40,7 +40,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_subr.c,v 1.53 2002/09/21 19:14:14 drochner Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_subr.c,v 1.54 2002/11/24 11:55:13 scw Exp $");
|
||||
|
||||
#ifdef _KERNEL_OPT
|
||||
#include "opt_pci.h"
|
||||
|
@ -605,10 +605,11 @@ pci_conf_print_bar(
|
|||
pci_conf_write(pc, tag, reg + 4, 0xffffffff);
|
||||
mask64h = pci_conf_read(pc, tag, reg + 4);
|
||||
pci_conf_write(pc, tag, reg + 4, rval64h);
|
||||
}
|
||||
} else
|
||||
mask64h = 0;
|
||||
splx(s);
|
||||
} else
|
||||
mask = 0;
|
||||
mask = mask64h = 0;
|
||||
#endif /* _KERNEL */
|
||||
|
||||
printf(" Base address register at 0x%02x", reg);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: scsipi_base.c,v 1.81 2002/11/09 19:02:27 thorpej Exp $ */
|
||||
/* $NetBSD: scsipi_base.c,v 1.82 2002/11/24 11:52:13 scw Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998, 1999, 2000, 2002 The NetBSD Foundation, Inc.
|
||||
|
@ -38,7 +38,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: scsipi_base.c,v 1.81 2002/11/09 19:02:27 thorpej Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: scsipi_base.c,v 1.82 2002/11/24 11:52:13 scw Exp $");
|
||||
|
||||
#include "opt_scsi.h"
|
||||
|
||||
|
@ -2393,7 +2393,7 @@ scsipi_set_xfer_mode(chan, target, immed)
|
|||
/*
|
||||
* Find the first LUN we know about on this I_T Nexus.
|
||||
*/
|
||||
for (lun = 0; lun < chan->chan_nluns; lun++) {
|
||||
for (itperiph = NULL, lun = 0; lun < chan->chan_nluns; lun++) {
|
||||
itperiph = scsipi_lookup_periph(chan, target, lun);
|
||||
if (itperiph != NULL)
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue