Commit 129965a916a8b659d7bb3b59877a3e8259bed5e3

Authored by Fabian Frederick
Committed by Linus Torvalds
1 parent 142cda5dbc

lib/test-kstrtox.c: use ARRAY_SIZE instead of sizeof/sizeof[0]

Use kernel.h definition.

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -3,7 +3,7 @@
3 3 #include <linux/module.h>
4 4  
5 5 #define for_each_test(i, test) \
6   - for (i = 0; i < sizeof(test) / sizeof(test[0]); i++)
  6 + for (i = 0; i < ARRAY_SIZE(test); i++)
7 7  
8 8 struct test_fail {
9 9 const char *str;