[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
@@ -1809,7 +1809,7 @@ static int in2000_abort(Scsi_Cmnd * cmd)
|
||||
|
||||
|
||||
#define MAX_IN2000_HOSTS 3
|
||||
#define MAX_SETUP_ARGS (sizeof(setup_args) / sizeof(char *))
|
||||
#define MAX_SETUP_ARGS ARRAY_SIZE(setup_args)
|
||||
#define SETUP_BUFFER_SIZE 200
|
||||
static char setup_buffer[SETUP_BUFFER_SIZE];
|
||||
static char setup_used[MAX_SETUP_ARGS];
|
||||
|
Reference in New Issue
Block a user