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/ips.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/ips.c')
-rw-r--r-- | drivers/scsi/ips.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/ips.c b/drivers/scsi/ips.c index 350c08c60887..5353b28b2939 100644 --- a/drivers/scsi/ips.c +++ b/drivers/scsi/ips.c | |||
@@ -556,7 +556,7 @@ ips_setup(char *ips_str) | |||
556 | * We now have key/value pairs. | 556 | * We now have key/value pairs. |
557 | * Update the variables | 557 | * Update the variables |
558 | */ | 558 | */ |
559 | for (i = 0; i < (sizeof (options) / sizeof (options[0])); i++) { | 559 | for (i = 0; i < ARRAY_SIZE(options); i++) { |
560 | if (strnicmp | 560 | if (strnicmp |
561 | (key, options[i].option_name, | 561 | (key, options[i].option_name, |
562 | strlen(options[i].option_name)) == 0) { | 562 | strlen(options[i].option_name)) == 0) { |