pcmcia: replace open-coded ARRAY_SIZE with macro
authorJim Cromie <jim.cromie@gmail.com>
Wed, 11 Apr 2012 00:56:49 +0000 (18:56 -0600)
committerDominik Brodowski <linux@dominikbrodowski.net>
Sat, 30 May 2015 13:10:47 +0000 (15:10 +0200)
Signed-off-by: Jim Cromie <jim.cromie@gmail.com>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
drivers/pcmcia/i82365.c

index a2c138719bac80907a86b2c3e70c871af8283f51..479b7951b1c3738bacef14135ee6d89464f58df8 100644 (file)
@@ -208,7 +208,7 @@ static pcic_t pcic[] = {
     { "VIA VT83C469", IS_CIRRUS|IS_VIA },
 };
 
-#define PCIC_COUNT     (sizeof(pcic)/sizeof(pcic_t))
+#define PCIC_COUNT     ARRAY_SIZE(pcic)
 
 /*====================================================================*/