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/wd33c93.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/wd33c93.c')
-rw-r--r-- | drivers/scsi/wd33c93.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/wd33c93.c b/drivers/scsi/wd33c93.c index d8a72609a31d..9341703dee00 100644 --- a/drivers/scsi/wd33c93.c +++ b/drivers/scsi/wd33c93.c | |||
@@ -1701,7 +1701,7 @@ wd33c93_abort(struct scsi_cmnd * cmd) | |||
1701 | } | 1701 | } |
1702 | 1702 | ||
1703 | #define MAX_WD33C93_HOSTS 4 | 1703 | #define MAX_WD33C93_HOSTS 4 |
1704 | #define MAX_SETUP_ARGS ((int)(sizeof(setup_args) / sizeof(char *))) | 1704 | #define MAX_SETUP_ARGS ARRAY_SIZE(setup_args) |
1705 | #define SETUP_BUFFER_SIZE 200 | 1705 | #define SETUP_BUFFER_SIZE 200 |
1706 | static char setup_buffer[SETUP_BUFFER_SIZE]; | 1706 | static char setup_buffer[SETUP_BUFFER_SIZE]; |
1707 | static char setup_used[MAX_SETUP_ARGS]; | 1707 | static char setup_used[MAX_SETUP_ARGS]; |