diff options
author | pfg <pfg@FreeBSD.org> | 2016-04-21 19:40:10 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2016-04-21 19:40:10 +0000 |
commit | 42747553f484b2cfcfb919643e1749c9ad782766 (patch) | |
tree | eafad75827e36e967c59edef51d49100cec9cad4 /sys/mips/nlm | |
parent | b98e219695917390f708c219fcd6bc8938cea0e2 (diff) | |
download | FreeBSD-src-42747553f484b2cfcfb919643e1749c9ad782766.zip FreeBSD-src-42747553f484b2cfcfb919643e1749c9ad782766.tar.gz |
sys: use our nitems() macro when param.h is available.
This should cover all the remaining cases in the kernel.
Discussed in: freebsd-current
Diffstat (limited to 'sys/mips/nlm')
-rw-r--r-- | sys/mips/nlm/board.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/mips/nlm/board.c b/sys/mips/nlm/board.c index 1cb50a2..bb335bf 100644 --- a/sys/mips/nlm/board.c +++ b/sys/mips/nlm/board.c @@ -105,10 +105,10 @@ nlm_get_vfbid_mapping(int vfbid) struct vfbid_tbl *p; if (nlm_is_xlp3xx()) { - nentries = sizeof(nlm3xx_vfbid)/sizeof(struct vfbid_tbl); + nentries = nitems(nlm3xx_vfbid); p = nlm3xx_vfbid; } else { - nentries = sizeof(nlm_vfbid)/sizeof(struct vfbid_tbl); + nentries = nitems(nlm_vfbid); p = nlm_vfbid; } |