From 45a9e9e27b9a497985ec68d6a21e2e4eea05922b Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Sun, 23 Nov 2008 17:29:37 +0100 Subject: [PATCH] floppy: use ARRAY_SIZE() --- extras/floppy/create_floppy_devices.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extras/floppy/create_floppy_devices.c b/extras/floppy/create_floppy_devices.c index 14df052c..0698fcd3 100644 --- a/extras/floppy/create_floppy_devices.c +++ b/extras/floppy/create_floppy_devices.c @@ -137,7 +137,7 @@ int main(int argc, char **argv) return 1; } - if (type < 0 || type >= (int) (sizeof(table_sup) / sizeof(table_sup[0]))) { + if (type < 0 || type >= (int) ARRAY_SIZE(table_sup)) { fprintf(stderr,"Invalid CMOS type %d\n", type); return 1; } -- 2.39.5