diff options
author | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2011-03-31 13:05:28 +0000 |
---|---|---|
committer | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2011-03-31 13:05:28 +0000 |
commit | 7a16c72e8c7a64ac7fea50c52bb65bf25e597258 (patch) | |
tree | c4cca6d86e7ae9a55113cc399662dadb1fcc4b2f /sys/dev/pcmcia/com_pcmcia.c | |
parent | caa37f64728b2a9313c9e8833d8688f24466c4c1 (diff) |
- use nitems(); no binary change.
ok fgsch@
Diffstat (limited to 'sys/dev/pcmcia/com_pcmcia.c')
-rw-r--r-- | sys/dev/pcmcia/com_pcmcia.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/pcmcia/com_pcmcia.c b/sys/dev/pcmcia/com_pcmcia.c index daaae7816ba..db0aa04503f 100644 --- a/sys/dev/pcmcia/com_pcmcia.c +++ b/sys/dev/pcmcia/com_pcmcia.c @@ -1,4 +1,4 @@ -/* $OpenBSD: com_pcmcia.c,v 1.51 2010/08/30 20:33:18 deraadt Exp $ */ +/* $OpenBSD: com_pcmcia.c,v 1.52 2011/03/31 13:05:27 jasper Exp $ */ /* $NetBSD: com_pcmcia.c,v 1.15 1998/08/22 17:47:58 msaitoh Exp $ */ /* @@ -189,8 +189,7 @@ com_pcmcia_match(parent, match, aux) return 1; /* 3. Is this a card we know about? */ - for (i = 0; i < sizeof(com_pcmcia_prod)/sizeof(com_pcmcia_prod[0]); - i++) { + for (i = 0; i < nitems(com_pcmcia_prod); i++) { for (j = 0; j < 4; j++) if (com_pcmcia_prod[i].cis1_info[j] && pa->card->cis1_info[j] && |