浏览代码

pcmcia: replace open-coded ARRAY_SIZE with macro

Signed-off-by: Jim Cromie <jim.cromie@gmail.com>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Jim Cromie 13 年之前
父节点
当前提交
e632cd9472
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/pcmcia/i82365.c

+ 1 - 1
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)
 
 /*====================================================================*/