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/if_ep_pcmcia.c | |
parent | caa37f64728b2a9313c9e8833d8688f24466c4c1 (diff) |
- use nitems(); no binary change.
ok fgsch@
Diffstat (limited to 'sys/dev/pcmcia/if_ep_pcmcia.c')
-rw-r--r-- | sys/dev/pcmcia/if_ep_pcmcia.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pcmcia/if_ep_pcmcia.c b/sys/dev/pcmcia/if_ep_pcmcia.c index 1b9f3222b4e..35690e09687 100644 --- a/sys/dev/pcmcia/if_ep_pcmcia.c +++ b/sys/dev/pcmcia/if_ep_pcmcia.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ep_pcmcia.c,v 1.39 2010/08/30 20:33:18 deraadt Exp $ */ +/* $OpenBSD: if_ep_pcmcia.c,v 1.40 2011/03/31 13:05:27 jasper Exp $ */ /* $NetBSD: if_ep_pcmcia.c,v 1.16 1998/08/17 23:20:40 thorpej Exp $ */ /*- @@ -168,7 +168,7 @@ ep_pcmcia_lookup(pa) { int i; - for (i = 0; i < sizeof(ep_pcmcia_prod)/sizeof(ep_pcmcia_prod[0]); i++) + for (i = 0; i < nitems(ep_pcmcia_prod); i++) if (pa->product == ep_pcmcia_prod[i].epp_product && pa->pf->number == ep_pcmcia_prod[i].epp_expfunc) return &ep_pcmcia_prod[i]; |