Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 204442
b: refs/heads/master
c: 501af8d
h: refs/heads/master
v: v3
  • Loading branch information
Kulikov Vasiliy authored and Jiri Kosina committed Jul 20, 2010
1 parent 3f530f8 commit 9e8d789
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 04ad327f277ec3bc3c05f5a5c19d58600882d38e
refs/heads/master: 501af8d110f1fca597ff61c8611d018360ff9bf7
2 changes: 1 addition & 1 deletion trunk/drivers/scsi/bfa/bfa_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ bfa_get_pciids(struct bfa_pciid_s **pciids, int *npciids)
{BFA_PCI_VENDOR_ID_BROCADE, BFA_PCI_DEVICE_ID_CT},
};

*npciids = sizeof(__pciids) / sizeof(__pciids[0]);
*npciids = ARRAY_SIZE(__pciids);
*pciids = __pciids;
}

Expand Down
10 changes: 4 additions & 6 deletions trunk/drivers/scsi/bfa/bfa_fcs.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ bfa_fcs_attach(struct bfa_fcs_s *fcs, struct bfa_s *bfa, struct bfad_s *bfad,
bfa_attach_fcs(bfa);
fcbuild_init();

for (i = 0; i < sizeof(fcs_modules) / sizeof(fcs_modules[0]); i++) {
for (i = 0; i < ARRAY_SIZE(fcs_modules); i++) {
mod = &fcs_modules[i];
if (mod->attach)
mod->attach(fcs);
Expand All @@ -102,7 +102,7 @@ bfa_fcs_init(struct bfa_fcs_s *fcs)
int i;
struct bfa_fcs_mod_s *mod;

for (i = 0; i < sizeof(fcs_modules) / sizeof(fcs_modules[0]); i++) {
for (i = 0; i < ARRAY_SIZE(fcs_modules); i++) {
mod = &fcs_modules[i];
if (mod->modinit)
mod->modinit(fcs);
Expand Down Expand Up @@ -163,13 +163,11 @@ void
bfa_fcs_exit(struct bfa_fcs_s *fcs)
{
struct bfa_fcs_mod_s *mod;
int nmods, i;
int i;

bfa_wc_init(&fcs->wc, bfa_fcs_exit_comp, fcs);

nmods = sizeof(fcs_modules) / sizeof(fcs_modules[0]);

for (i = 0; i < nmods; i++) {
for (i = 0; i < ARRAY_SIZE(fcs_modules); i++) {

mod = &fcs_modules[i];
if (mod->modexit) {
Expand Down

0 comments on commit 9e8d789

Please sign in to comment.