Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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 <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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;