Remove shadow decl of num_errors which exactly duplicated the file-scope
decl.
This commit is contained in:
parent
eb00d53595
commit
7173dc3334
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: aic7xxx.c,v 1.88 2002/04/05 18:27:50 bouyer Exp $ */
|
||||
/* $NetBSD: aic7xxx.c,v 1.89 2002/05/31 17:31:15 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Generic driver for the aic7xxx based adaptec SCSI controllers
|
||||
|
@ -88,7 +88,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: aic7xxx.c,v 1.88 2002/04/05 18:27:50 bouyer Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: aic7xxx.c,v 1.89 2002/05/31 17:31:15 thorpej Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_ahc.h"
|
||||
|
@ -1548,10 +1548,9 @@ ahc_intr(void *arg)
|
|||
* We upset the sequencer :-(
|
||||
* Lookup the error message
|
||||
*/
|
||||
int i, error, num_errors;
|
||||
int i, error;
|
||||
|
||||
error = ahc_inb(ahc, ERROR);
|
||||
num_errors = sizeof(hard_error)/sizeof(hard_error[0]);
|
||||
for (i = 0; error != 1 && i < num_errors; i++)
|
||||
error >>= 1;
|
||||
panic("%s: brkadrint, %s at seqaddr = 0x%x\n",
|
||||
|
|
Loading…
Reference in New Issue