diff options
Diffstat (limited to 'drivers/scsi/bfa/bfa_fcs.c')
-rw-r--r-- | drivers/scsi/bfa/bfa_fcs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/scsi/bfa/bfa_fcs.c b/drivers/scsi/bfa/bfa_fcs.c index a3ab5cce4208..0f19455951ec 100644 --- a/drivers/scsi/bfa/bfa_fcs.c +++ b/drivers/scsi/bfa/bfa_fcs.c | |||
@@ -81,7 +81,7 @@ bfa_fcs_attach(struct bfa_fcs_s *fcs, struct bfa_s *bfa, struct bfad_s *bfad, | |||
81 | bfa->fcs = BFA_TRUE; | 81 | bfa->fcs = BFA_TRUE; |
82 | fcbuild_init(); | 82 | fcbuild_init(); |
83 | 83 | ||
84 | for (i = 0; i < sizeof(fcs_modules) / sizeof(fcs_modules[0]); i++) { | 84 | for (i = 0; i < ARRAY_SIZE(fcs_modules); i++) { |
85 | mod = &fcs_modules[i]; | 85 | mod = &fcs_modules[i]; |
86 | if (mod->attach) | 86 | if (mod->attach) |
87 | mod->attach(fcs); | 87 | mod->attach(fcs); |
@@ -97,7 +97,7 @@ bfa_fcs_init(struct bfa_fcs_s *fcs) | |||
97 | int i; | 97 | int i; |
98 | struct bfa_fcs_mod_s *mod; | 98 | struct bfa_fcs_mod_s *mod; |
99 | 99 | ||
100 | for (i = 0; i < sizeof(fcs_modules) / sizeof(fcs_modules[0]); i++) { | 100 | for (i = 0; i < ARRAY_SIZE(fcs_modules); i++) { |
101 | mod = &fcs_modules[i]; | 101 | mod = &fcs_modules[i]; |
102 | if (mod->modinit) | 102 | if (mod->modinit) |
103 | mod->modinit(fcs); | 103 | mod->modinit(fcs); |
@@ -184,7 +184,7 @@ bfa_fcs_exit(struct bfa_fcs_s *fcs) | |||
184 | 184 | ||
185 | bfa_wc_init(&fcs->wc, bfa_fcs_exit_comp, fcs); | 185 | bfa_wc_init(&fcs->wc, bfa_fcs_exit_comp, fcs); |
186 | 186 | ||
187 | nmods = sizeof(fcs_modules) / sizeof(fcs_modules[0]); | 187 | nmods = ARRAY_SIZE(fcs_modules); |
188 | 188 | ||
189 | for (i = 0; i < nmods; i++) { | 189 | for (i = 0; i < nmods; i++) { |
190 | 190 | ||