mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-20 11:11:24 +00:00
Use nitems() macro instead of re-inventing it
Fixed after r301221. Pointed out by: oshogbo Submitted by: Michal Stanek <mst@semihalf.com> Obtained from: Semihalf
This commit is contained in:
parent
c6750673bf
commit
85bf4227a0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=301281
@ -2131,7 +2131,7 @@ win_cpu_from_dt(void)
|
||||
return (0);
|
||||
|
||||
t++;
|
||||
if (t >= ((sizeof(cpu_win_tbl))/(sizeof(cpu_win_tbl[0])))) {
|
||||
if (t >= nitems(cpu_win_tbl)) {
|
||||
debugf("cannot fit CESA tuple into cpu_win_tbl\n");
|
||||
return (ENOMEM);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user