diff options
Diffstat (limited to 'sys/dev/fb/fb.c')
-rw-r--r-- | sys/dev/fb/fb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/fb/fb.c b/sys/dev/fb/fb.c index 183e20c..aa2d300 100644 --- a/sys/dev/fb/fb.c +++ b/sys/dev/fb/fb.c @@ -610,7 +610,7 @@ fb_type(int adp_type) }; int i; - for (i = 0; i < sizeof(types)/sizeof(types[0]); ++i) { + for (i = 0; i < nitems(types); ++i) { if (types[i].va_type == adp_type) return types[i].fb_type; } |