Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci fix __arraycount() parameter



details:   https://anonhg.NetBSD.org/src/rev/89efa2154b10
branches:  trunk
changeset: 1011878:89efa2154b10
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Tue Jul 14 17:23:27 2020 +0000

description:
fix __arraycount() parameter

diffstat:

 sys/dev/pci/ciss_pci.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r eb558033d7fd -r 89efa2154b10 sys/dev/pci/ciss_pci.c
--- a/sys/dev/pci/ciss_pci.c    Tue Jul 14 17:19:03 2020 +0000
+++ b/sys/dev/pci/ciss_pci.c    Tue Jul 14 17:23:27 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ciss_pci.c,v 1.20 2020/07/14 17:19:03 jdolecek Exp $   */
+/*     $NetBSD: ciss_pci.c,v 1.21 2020/07/14 17:23:27 jdolecek Exp $   */
 /*     $OpenBSD: ciss_pci.c,v 1.9 2005/12/13 15:56:01 brad Exp $       */
 
 /*
@@ -19,7 +19,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ciss_pci.c,v 1.20 2020/07/14 17:19:03 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ciss_pci.c,v 1.21 2020/07/14 17:23:27 jdolecek Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -125,7 +125,7 @@
        sc->sc_dev = self;
 
        aprint_naive("\n");
-       for (i = 0; i < __arraycount(ciss_pci_devices[i]); i++)
+       for (i = 0; i < __arraycount(ciss_pci_devices); i++)
        {
                if ((PCI_VENDOR(pa->pa_id) == ciss_pci_devices[i].vendor &&
                     PCI_PRODUCT(pa->pa_id) == ciss_pci_devices[i].product) ||



Home | Main Index | Thread Index | Old Index