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/sio/sio.c | |
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/sio/sio.c')
-rw-r--r-- | sys/dev/sio/sio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/sio/sio.c b/sys/dev/sio/sio.c index c27b7bc..60ba8b8 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; |