]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/net/skfp/smt.c
drivers/net/: all drivers/net/ cleanup with ARRAY_SIZE
[linux-2.6-omap-h63xx.git] / drivers / net / skfp / smt.c
index 75afc1f07ba0ab2b70d263738759cb30c9b52fa9..ced2c8f76be711f773881d1718405a9367752762 100644 (file)
@@ -1654,7 +1654,7 @@ static const struct smt_pdef {
        { SMT_P4053,    0,      SWAP_SMT_P4053                  } ,
 } ;
 
-#define N_SMT_PLEN     (sizeof(smt_pdef)/sizeof(smt_pdef[0]))
+#define N_SMT_PLEN     ARRAY_SIZE(smt_pdef)
 
 int smt_check_para(struct s_smc *smc, struct smt_header        *sm,
                   const u_short list[])