diff options
author | Tobias Klauser <tklauser@nuerscht.ch> | 2006-06-09 01:23:48 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-06-10 11:45:30 -0400 |
commit | 6391a11375de5e2bb1eb8481e54619761dc65d9f (patch) | |
tree | 956aae1d278a3f731b2e6148ff40a69aa7957ea8 /drivers/scsi/aic7xxx_old.c | |
parent | 9dc399de0840a478adb71278becf598d3ab3aacc (diff) |
[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>
Diffstat (limited to 'drivers/scsi/aic7xxx_old.c')
-rw-r--r-- | drivers/scsi/aic7xxx_old.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/aic7xxx_old.c b/drivers/scsi/aic7xxx_old.c index 770f1647e4d6..5dba1c63122e 100644 --- a/drivers/scsi/aic7xxx_old.c +++ b/drivers/scsi/aic7xxx_old.c | |||
@@ -1565,7 +1565,7 @@ aic7xxx_check_patch(struct aic7xxx_host *p, | |||
1565 | struct sequencer_patch *last_patch; | 1565 | struct sequencer_patch *last_patch; |
1566 | int num_patches; | 1566 | int num_patches; |
1567 | 1567 | ||
1568 | num_patches = sizeof(sequencer_patches)/sizeof(struct sequencer_patch); | 1568 | num_patches = ARRAY_SIZE(sequencer_patches); |
1569 | last_patch = &sequencer_patches[num_patches]; | 1569 | last_patch = &sequencer_patches[num_patches]; |
1570 | cur_patch = *start_patch; | 1570 | cur_patch = *start_patch; |
1571 | 1571 | ||