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
[PATCH] uml: Use ARRAY_SIZE more assiduously
There were a bunch of missed ARRAY_SIZE opportunities. Also, some formatting fixes in the affected areas of code. Signed-off-by: Jeff Dike <jdike@addtoit.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
13c06be399
commit
91b165c059
@@ -76,7 +76,7 @@ int pcap_setup(char *str, char **mac_out, void *data)
|
||||
if(host_if != NULL)
|
||||
init->host_if = host_if;
|
||||
|
||||
for(i = 0; i < sizeof(options)/sizeof(options[0]); i++){
|
||||
for(i = 0; i < ARRAY_SIZE(options); i++){
|
||||
if(options[i] == NULL)
|
||||
continue;
|
||||
if(!strcmp(options[i], "promisc"))
|
||||
|
||||
Reference in New Issue
Block a user