You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
[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
+1
-1
@@ -556,7 +556,7 @@ ips_setup(char *ips_str)
|
||||
* We now have key/value pairs.
|
||||
* Update the variables
|
||||
*/
|
||||
for (i = 0; i < (sizeof (options) / sizeof (options[0])); i++) {
|
||||
for (i = 0; i < ARRAY_SIZE(options); i++) {
|
||||
if (strnicmp
|
||||
(key, options[i].option_name,
|
||||
strlen(options[i].option_name)) == 0) {
|
||||
|
||||
Reference in New Issue
Block a user