aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/hifn
diff options
context:
space:
mode:
authorPedro F. Giffuni <pfg@FreeBSD.org>2016-04-19 23:37:24 +0000
committerPedro F. Giffuni <pfg@FreeBSD.org>2016-04-19 23:37:24 +0000
commit73a1170a8c41cb848f17cc0a8839e9dcee3d126e (patch)
tree346d2ff1b645f831d2f412a7a4be3f6eb1c711b4 /sys/dev/hifn
parent4ec642f1d61bbab5998f7b19281396ee925f82f0 (diff)
Notes
Diffstat (limited to 'sys/dev/hifn')
-rw-r--r--sys/dev/hifn/hifn7751.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/hifn/hifn7751.c b/sys/dev/hifn/hifn7751.c
index ba510be5b5bf..65dbfab955ab 100644
--- a/sys/dev/hifn/hifn7751.c
+++ b/sys/dev/hifn/hifn7751.c
@@ -1029,7 +1029,7 @@ hifn_enable_crypto(struct hifn_softc *sc)
u_int32_t dmacfg, ramcfg, encl, addr, i;
char *offtbl = NULL;
- for (i = 0; i < sizeof(pci2id)/sizeof(pci2id[0]); i++) {
+ for (i = 0; i < nitems(pci2id); i++) {
if (pci2id[i].pci_vendor == pci_get_vendor(sc->sc_dev) &&
pci2id[i].pci_prod == pci_get_device(sc->sc_dev)) {
offtbl = pci2id[i].card_id;