[PATCH 01/12] pcmcia: replace open-coded ARRAY_SIZE with macro

Dominik Brodowski linux at dominikbrodowski.net
Mon Jun 22 08:33:07 PDT 2015


From: Jim Cromie <jim.cromie at gmail.com>

Signed-off-by: Jim Cromie <jim.cromie at gmail.com>
Signed-off-by: Dominik Brodowski <linux at dominikbrodowski.net>
---
 drivers/pcmcia/i82365.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pcmcia/i82365.c b/drivers/pcmcia/i82365.c
index a2c1387..479b795 100644
--- a/drivers/pcmcia/i82365.c
+++ b/drivers/pcmcia/i82365.c
@@ -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)
 
 /*====================================================================*/
 
-- 
2.1.4




More information about the linux-pcmcia mailing list