From 73a1170a8c41cb848f17cc0a8839e9dcee3d126e Mon Sep 17 00:00:00 2001 From: "Pedro F. Giffuni" Date: Tue, 19 Apr 2016 23:37:24 +0000 Subject: 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 --- sys/dev/sio/sio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/dev/sio/sio.c') diff --git a/sys/dev/sio/sio.c b/sys/dev/sio/sio.c index c27b7bcb3f19..60ba8b85c4b4 100644 --- a/sys/dev/sio/sio.c +++ b/sys/dev/sio/sio.c @@ -1638,7 +1638,7 @@ txrdy: outb(com->data_port, *ioptr++); ++com->bytes_out; if (com->unit == siotsunit - && siotso < sizeof siots / sizeof siots[0]) + && siotso < nitems(siots)) nanouptime(&siots[siotso++]); } com->obufq.l_head = ioptr; -- cgit v1.2.3