diff options
Diffstat (limited to 'drivers/net/skfp')
-rw-r--r-- | drivers/net/skfp/smt.c | 2 | ||||
-rw-r--r-- | drivers/net/skfp/srf.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/skfp/smt.c b/drivers/net/skfp/smt.c index 75afc1f07ba0..ced2c8f76be7 100644 --- a/drivers/net/skfp/smt.c +++ b/drivers/net/skfp/smt.c | |||
@@ -1654,7 +1654,7 @@ static const struct smt_pdef { | |||
1654 | { SMT_P4053, 0, SWAP_SMT_P4053 } , | 1654 | { SMT_P4053, 0, SWAP_SMT_P4053 } , |
1655 | } ; | 1655 | } ; |
1656 | 1656 | ||
1657 | #define N_SMT_PLEN (sizeof(smt_pdef)/sizeof(smt_pdef[0])) | 1657 | #define N_SMT_PLEN ARRAY_SIZE(smt_pdef) |
1658 | 1658 | ||
1659 | int smt_check_para(struct s_smc *smc, struct smt_header *sm, | 1659 | int smt_check_para(struct s_smc *smc, struct smt_header *sm, |
1660 | const u_short list[]) | 1660 | const u_short list[]) |
diff --git a/drivers/net/skfp/srf.c b/drivers/net/skfp/srf.c index 16573aca8b62..6caf713b744c 100644 --- a/drivers/net/skfp/srf.c +++ b/drivers/net/skfp/srf.c | |||
@@ -43,7 +43,7 @@ static void clear_reported(struct s_smc *smc); | |||
43 | static void smt_send_srf(struct s_smc *smc); | 43 | static void smt_send_srf(struct s_smc *smc); |
44 | static struct s_srf_evc *smt_get_evc(struct s_smc *smc, int code, int index); | 44 | static struct s_srf_evc *smt_get_evc(struct s_smc *smc, int code, int index); |
45 | 45 | ||
46 | #define MAX_EVCS (sizeof(smc->evcs)/sizeof(smc->evcs[0])) | 46 | #define MAX_EVCS ARRAY_SIZE(smc->evcs) |
47 | 47 | ||
48 | struct evc_init { | 48 | struct evc_init { |
49 | u_char code ; | 49 | u_char code ; |
@@ -67,7 +67,7 @@ static const struct evc_init evc_inits[] = { | |||
67 | { SMT_EVENT_PORT_PATH_CHANGE, INDEX_PORT,NUMPHYS,SMT_P4053 } , | 67 | { SMT_EVENT_PORT_PATH_CHANGE, INDEX_PORT,NUMPHYS,SMT_P4053 } , |
68 | } ; | 68 | } ; |
69 | 69 | ||
70 | #define MAX_INIT_EVC (sizeof(evc_inits)/sizeof(evc_inits[0])) | 70 | #define MAX_INIT_EVC ARRAY_SIZE(evc_inits) |
71 | 71 | ||
72 | void smt_init_evc(struct s_smc *smc) | 72 | void smt_init_evc(struct s_smc *smc) |
73 | { | 73 | { |