summaryrefslogtreecommitdiffstats
path: root/sys/dev/rc
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/rc')
-rw-r--r--sys/dev/rc/rc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/rc/rc.c b/sys/dev/rc/rc.c
index 1e8a23a..d600626 100644
--- a/sys/dev/rc/rc.c
+++ b/sys/dev/rc/rc.c
@@ -186,7 +186,7 @@ rc_probe(device_t dev)
if (port == -1)
return (ENXIO);
found = 0;
- for (i = 0; i < sizeof(rc_ports) / sizeof(int); i++)
+ for (i = 0; i < nitems(rc_ports); i++)
if (rc_ports[i] == port) {
found = 1;
break;
OpenPOWER on IntegriCloud