summaryrefslogtreecommitdiffstats
path: root/lib/test-kstrtox.c
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2014-08-06 16:09:33 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2014-08-06 18:01:25 -0700
commit129965a916a8b659d7bb3b59877a3e8259bed5e3 (patch)
treecff88d2dcf5d4ab1a6d13dba9d635e7b87314245 /lib/test-kstrtox.c
parent142cda5dbcb0dc3738c079f591290d6384261c73 (diff)
downloadlinux-stable-129965a916a8b659d7bb3b59877a3e8259bed5e3.tar.gz
linux-stable-129965a916a8b659d7bb3b59877a3e8259bed5e3.tar.bz2
linux-stable-129965a916a8b659d7bb3b59877a3e8259bed5e3.zip
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>
Diffstat (limited to 'lib/test-kstrtox.c')
-rw-r--r--lib/test-kstrtox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/test-kstrtox.c b/lib/test-kstrtox.c
index bea3f3fa3f02..4137bca5f8e8 100644
--- a/lib/test-kstrtox.c
+++ b/lib/test-kstrtox.c
@@ -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;