diff options
author | pfg <pfg@FreeBSD.org> | 2016-04-19 23:37:24 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2016-04-19 23:37:24 +0000 |
commit | e2a6cba6516fcfe2c4f3ff73d0f9aa0ba261f548 (patch) | |
tree | 346d2ff1b645f831d2f412a7a4be3f6eb1c711b4 /sys/dev/hatm | |
parent | ea58c6f194dc25f7e2e87f7a36de9b2da5b8b90c (diff) | |
download | FreeBSD-src-e2a6cba6516fcfe2c4f3ff73d0f9aa0ba261f548.zip FreeBSD-src-e2a6cba6516fcfe2c4f3ff73d0f9aa0ba261f548.tar.gz |
sys/dev: use our nitems() macro when it is avaliable through param.h.
No functional change, only trivial cases are done in this sweep,
Drivers that can get further enhancements will be done independently.
Discussed in: freebsd-current
Diffstat (limited to 'sys/dev/hatm')
-rw-r--r-- | sys/dev/hatm/if_hatm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/hatm/if_hatm.c b/sys/dev/hatm/if_hatm.c index 0677a14..d1dd6b1 100644 --- a/sys/dev/hatm/if_hatm.c +++ b/sys/dev/hatm/if_hatm.c @@ -608,7 +608,7 @@ hatm_read_prom_byte(struct hatm_softc *sc, u_int addr) BARRIER_W(sc); /* send READ */ - for (i = 0; i < sizeof(readtab) / sizeof(readtab[0]); i++) { + for (i = 0; i < nitems(readtab); i++) { WRITE4(sc, HE_REGO_HOST_CNTL, val | readtab[i]); BARRIER_W(sc); DELAY(EEPROM_DELAY); |