[SCSI] drivers/scsi: Use ARRAY_SIZE macro
Use ARRAY_SIZE macro instead of sizeof(x)/sizeof(x[0]) and remove duplicates of the macro. Signed-off-by: Tobias Klauser <tklauser@nuerscht.ch> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
This commit is contained in:
committed by
James Bottomley
parent
9dc399de08
commit
6391a11375
@@ -279,7 +279,7 @@ static struct fd_mcs_adapters_struct fd_mcs_adapters[] = {
|
||||
2},
|
||||
};
|
||||
|
||||
#define FD_BRDS sizeof(fd_mcs_adapters)/sizeof(struct fd_mcs_adapters_struct)
|
||||
#define FD_BRDS ARRAY_SIZE(fd_mcs_adapters)
|
||||
|
||||
static irqreturn_t fd_mcs_intr(int irq, void *dev_id, struct pt_regs *regs);
|
||||
|
||||
|
Reference in New Issue
Block a user