Fix rookie mistake - it's nitems(), not sizeof().
Reported by: xtouqh_icloud.com MFC after: 2 weeks Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
80ba361b2f
commit
939e5de8d4
@ -27,7 +27,7 @@ linux_check_errtbl(void)
|
||||
{
|
||||
int i;
|
||||
|
||||
for (i = 1; i < sizeof(linux_errtbl); i++) {
|
||||
for (i = 1; i < nitems(linux_errtbl); i++) {
|
||||
KASSERT(linux_errtbl[i] != 0,
|
||||
("%s: linux_errtbl[%d] == 0", __func__, i));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user