summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_nxe.c
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2009-06-02 12:33:43 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2009-06-02 12:33:43 +0000
commita8bd1c8414967f4fdd652eac1ebdcdf9d01f17e6 (patch)
tree36bbd4e602fa4316407d974ac8d87be0b75f8415 /sys/dev/pci/if_nxe.c
parenta12a6dbd15cd3189575a546e55547e9fa894bb3c (diff)
replace custom macro sizeofa() with nitems()
Diffstat (limited to 'sys/dev/pci/if_nxe.c')
-rw-r--r--sys/dev/pci/if_nxe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_nxe.c b/sys/dev/pci/if_nxe.c
index eb59c1f25a0..79662b324db 100644
--- a/sys/dev/pci/if_nxe.c
+++ b/sys/dev/pci/if_nxe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_nxe.c,v 1.59 2008/11/28 02:44:18 brad Exp $ */
+/* $OpenBSD: if_nxe.c,v 1.60 2009/06/02 12:33:42 reyk Exp $ */
/*
* Copyright (c) 2007 David Gwynne <dlg@openbsd.org>
@@ -1637,7 +1637,7 @@ nxe_board_info(struct nxe_softc *sc)
goto out;
}
- for (i = 0; i < sizeofa(nxe_boards); i++) {
+ for (i = 0; i < nitems(nxe_boards); i++) {
if (ni->ni_board_type == nxe_boards[i].brd_type) {
sc->sc_board = &nxe_boards[i];
break;