diff options
author | pfg <pfg@FreeBSD.org> | 2016-04-20 15:45:55 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2016-04-20 15:45:55 +0000 |
commit | 15369e2805f361b0ac3d32a98d1413add68c5b42 (patch) | |
tree | fb11ecd3a1afac76147418d282a50384f3e1427f /sys/powerpc/pseries | |
parent | b09e37ef6cc1ad2e74a185000ee99cee5da7e798 (diff) | |
download | FreeBSD-src-15369e2805f361b0ac3d32a98d1413add68c5b42.zip FreeBSD-src-15369e2805f361b0ac3d32a98d1413add68c5b42.tar.gz |
Use our nitems() macro when param.h is available.
Replacements specific to arm, mips, pc98, powerpc and sparc64.
Discussed in: freebsd-current
Diffstat (limited to 'sys/powerpc/pseries')
-rw-r--r-- | sys/powerpc/pseries/xics.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/powerpc/pseries/xics.c b/sys/powerpc/pseries/xics.c index 2d012c5..4ae7c9e 100644 --- a/sys/powerpc/pseries/xics.c +++ b/sys/powerpc/pseries/xics.c @@ -266,8 +266,8 @@ xicp_enable(device_t dev, u_int irq, u_int vector) sc = device_get_softc(dev); - KASSERT(sc->nintvecs + 1 < sizeof(sc->intvecs)/sizeof(sc->intvecs[0]), - ("Too many XICP interrupts")); + KASSERT(sc->nintvecs + 1 < nitems(sc->intvecs), + ("Too many XICP interrupts")); mtx_lock(&sc->sc_mtx); sc->intvecs[sc->nintvecs].irq = irq; |