X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fnet%2Fskfp%2Fsmt.c;h=ced2c8f76be711f773881d1718405a9367752762;hb=0c326331c8b107abc0a160e8899d749150b8f76a;hp=75afc1f07ba0ab2b70d263738759cb30c9b52fa9;hpb=fcf75356e9cf0460ef47a5b756bc3b0951ecab59;p=linux-2.6-omap-h63xx.git diff --git a/drivers/net/skfp/smt.c b/drivers/net/skfp/smt.c index 75afc1f07ba..ced2c8f76be 100644 --- a/drivers/net/skfp/smt.c +++ b/drivers/net/skfp/smt.c @@ -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[])