diff options
| author | 2011-04-03 15:36:02 +0000 | |
|---|---|---|
| committer | 2011-04-03 15:36:02 +0000 | |
| commit | 299fb045a4edc4b14efb035a921b48756a65a5d9 (patch) | |
| tree | c8de2030ccfa503a3a0fb185f3ba70b648d8522a /sys/dev/pci/isp_pci.c | |
| parent | Move PPWAIT flag from struct proc to process, so that rthreads in (diff) | |
| download | wireguard-openbsd-299fb045a4edc4b14efb035a921b48756a65a5d9.tar.xz wireguard-openbsd-299fb045a4edc4b14efb035a921b48756a65a5d9.zip | |
use nitems(); no binary change for drivers that are compiled on amd64.
ok claudio@
Diffstat (limited to 'sys/dev/pci/isp_pci.c')
| -rw-r--r-- | sys/dev/pci/isp_pci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/isp_pci.c b/sys/dev/pci/isp_pci.c index 208c6800820..608ef8f88b6 100644 --- a/sys/dev/pci/isp_pci.c +++ b/sys/dev/pci/isp_pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: isp_pci.c,v 1.53 2009/11/07 14:49:02 miod Exp $ */ +/* $OpenBSD: isp_pci.c,v 1.54 2011/04/03 15:36:03 jasper Exp $ */ /* $FreeBSD: src/sys/dev/isp/isp_pci.c,v 1.148 2007/06/26 23:08:57 mjacob Exp $*/ /*- * Copyright (c) 1997-2006 by Matthew Jacob @@ -438,7 +438,7 @@ isp_pci_probe(struct device *parent, void *match, void *aux) } } #endif - return (pci_matchbyid(pa, ispdev, sizeof(ispdev)/sizeof(ispdev[0]))); + return (pci_matchbyid(pa, ispdev, nitems(ispdev))); } |
