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/in2000.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/in2000.c')
-rw-r--r-- | drivers/scsi/in2000.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/in2000.c b/drivers/scsi/in2000.c index 89a57a62e8ca..883bc92b4d9a 100644 --- a/drivers/scsi/in2000.c +++ b/drivers/scsi/in2000.c | |||
@@ -1809,7 +1809,7 @@ static int in2000_abort(Scsi_Cmnd * cmd) | |||
1809 | 1809 | ||
1810 | 1810 | ||
1811 | #define MAX_IN2000_HOSTS 3 | 1811 | #define MAX_IN2000_HOSTS 3 |
1812 | #define MAX_SETUP_ARGS (sizeof(setup_args) / sizeof(char *)) | 1812 | #define MAX_SETUP_ARGS ARRAY_SIZE(setup_args) |
1813 | #define SETUP_BUFFER_SIZE 200 | 1813 | #define SETUP_BUFFER_SIZE 200 |
1814 | static char setup_buffer[SETUP_BUFFER_SIZE]; | 1814 | static char setup_buffer[SETUP_BUFFER_SIZE]; |
1815 | static char setup_used[MAX_SETUP_ARGS]; | 1815 | static char setup_used[MAX_SETUP_ARGS]; |