Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic Remove shadow decl of num_errors which exactly du...
details: https://anonhg.NetBSD.org/src/rev/b3e4988fd377
branches: trunk
changeset: 532115:b3e4988fd377
user: thorpej <thorpej%NetBSD.org@localhost>
date: Fri May 31 17:31:15 2002 +0000
description:
Remove shadow decl of num_errors which exactly duplicated the file-scope
decl.
diffstat:
sys/dev/ic/aic7xxx.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (30 lines):
diff -r 7d4eb5eb7ecb -r b3e4988fd377 sys/dev/ic/aic7xxx.c
--- a/sys/dev/ic/aic7xxx.c Fri May 31 17:27:40 2002 +0000
+++ b/sys/dev/ic/aic7xxx.c Fri May 31 17:31:15 2002 +0000
@@ -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 @@
* 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",
Home |
Main Index |
Thread Index |
Old Index