Commit 129965a9 authored by Fabian Frederick's avatar Fabian Frederick Committed by Linus Torvalds

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

Use kernel.h definition.
Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 142cda5d
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
#include <linux/module.h> #include <linux/module.h>
#define for_each_test(i, test) \ #define for_each_test(i, test) \
for (i = 0; i < sizeof(test) / sizeof(test[0]); i++) for (i = 0; i < ARRAY_SIZE(test); i++)
struct test_fail { struct test_fail {
const char *str; const char *str;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment