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

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

Use kernel.h definition.
Signed-off-by: default avatarFabian Frederick <>
Cc: Alexey Dobriyan <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 142cda5d
......@@ -3,7 +3,7 @@
#include <linux/module.h>
#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 {
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