Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Revert previous change.
details: https://anonhg.NetBSD.org/src/rev/a25c3cd41d7a
branches: trunk
changeset: 336284:a25c3cd41d7a
user: nonaka <nonaka%NetBSD.org@localhost>
date: Tue Feb 24 02:26:15 2015 +0000
description:
Revert previous change.
diffstat:
sys/dev/pci/if_iwm.c | 10 +++-------
1 files changed, 3 insertions(+), 7 deletions(-)
diffs (32 lines):
diff -r 0042f4ea4a99 -r a25c3cd41d7a sys/dev/pci/if_iwm.c
--- a/sys/dev/pci/if_iwm.c Mon Feb 23 23:21:47 2015 +0000
+++ b/sys/dev/pci/if_iwm.c Tue Feb 24 02:26:15 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_iwm.c,v 1.12 2015/02/23 13:09:37 nonaka Exp $ */
+/* $NetBSD: if_iwm.c,v 1.13 2015/02/24 02:26:15 nonaka Exp $ */
/* OpenBSD: if_iwm.c,v 1.18 2015/02/11 01:12:42 brad Exp */
/*
@@ -105,7 +105,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_iwm.c,v 1.12 2015/02/23 13:09:37 nonaka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_iwm.c,v 1.13 2015/02/24 02:26:15 nonaka Exp $");
#include <sys/param.h>
#include <sys/conf.h>
@@ -5347,12 +5347,8 @@
if (ridx > IWM_RIDX_MAX)
DPRINTF(("%s: WARNING: device rate for %d not found!\n",
DEVNAME(sc), rate));
- else if (i < __arraycount(in->in_ridx))
+ else
in->in_ridx[i] = ridx;
- else
- DPRINTF(("%s: WARNING: out of range: "
- "i(%d) >= array size(%zu)\n", DEVNAME(sc),
- i, __arraycount(in->in_ridx)));
}
/* then construct a lq_cmd based on those */
Home |
Main Index |
Thread Index |
Old Index