diff options
author | Kulikov Vasiliy <segooon@gmail.com> | 2010-06-28 15:55:04 +0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2010-07-20 17:14:35 +0200 |
commit | 501af8d110f1fca597ff61c8611d018360ff9bf7 (patch) | |
tree | e77fd76711af547b82cd5885642eaf5b116ab0ac /drivers/scsi/bfa/bfa_core.c | |
parent | 04ad327f277ec3bc3c05f5a5c19d58600882d38e (diff) | |
download | linux-501af8d110f1fca597ff61c8611d018360ff9bf7.tar.bz2 |
scsi: bfa: use ARRAY_SIZE
Change sizeof(x) / sizeof(*x) to ARRAY_SIZE(x).
Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/scsi/bfa/bfa_core.c')
-rw-r--r-- | drivers/scsi/bfa/bfa_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/bfa/bfa_core.c b/drivers/scsi/bfa/bfa_core.c index 3a7b3f88932f..d84550636add 100644 --- a/drivers/scsi/bfa/bfa_core.c +++ b/drivers/scsi/bfa/bfa_core.c @@ -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; } |