* [PATCH 06/16] trivial: use ARRAY_SIZE
@ 2010-06-28 11:55 Kulikov Vasiliy
2010-07-20 15:10 ` Jiri Kosina
0 siblings, 1 reply; 2+ messages in thread
From: Kulikov Vasiliy @ 2010-06-28 11:55 UTC (permalink / raw)
To: trivial
Cc: Kernel Janitors, Jing Huang, James E.J. Bottomley,
Krishna Gudipati, Kulikov Vasiliy, linux-scsi, linux-kernel
Change sizeof(x) / sizeof(*x) to ARRAY_SIZE(x).
Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
---
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 3a7b3f8..d845506 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;
}
--
1.7.0.4
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 06/16] trivial: use ARRAY_SIZE
2010-06-28 11:55 [PATCH 06/16] trivial: use ARRAY_SIZE Kulikov Vasiliy
@ 2010-07-20 15:10 ` Jiri Kosina
0 siblings, 0 replies; 2+ messages in thread
From: Jiri Kosina @ 2010-07-20 15:10 UTC (permalink / raw)
To: Kulikov Vasiliy
Cc: Kernel Janitors, Jing Huang, James E.J. Bottomley,
Krishna Gudipati, linux-scsi, linux-kernel
On Mon, 28 Jun 2010, Kulikov Vasiliy wrote:
> Change sizeof(x) / sizeof(*x) to ARRAY_SIZE(x).
>
> Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
> ---
> 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 3a7b3f8..d845506 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;
> }
Doesn't seem to be in linux-next as of today. I have applied the patch to
trivial queue.
--
Jiri Kosina
SUSE Labs, Novell Inc.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-07-20 15:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-28 11:55 [PATCH 06/16] trivial: use ARRAY_SIZE Kulikov Vasiliy
2010-07-20 15:10 ` Jiri Kosina
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome