Merge tag 'pinctrl-v3.17-2' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw...
[linux-drm-fsl-dcu.git] / lib / test-kstrtox.c
index bea3f3fa3f02a920fb92b9293c0adf06d72a52a6..4137bca5f8e8e5008ca88b7fcb801096856eaf0c 100644 (file)
@@ -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;