]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
scripts/kallsyms: remove unneeded #ifndef ARRAY_SIZE
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Sat, 23 Nov 2019 16:04:29 +0000 (01:04 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 25 Nov 2019 11:58:35 +0000 (20:58 +0900)
This is not defined in the standard headers. #ifndef is unneeded.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
scripts/kallsyms.c

index ae6504d07fd6123b6a9d984bec070ece4c59d613..918c2ba071b596274f97d8a55212015d19791892 100644 (file)
@@ -24,9 +24,7 @@
 #include <ctype.h>
 #include <limits.h>
 
-#ifndef ARRAY_SIZE
 #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof(arr[0]))
-#endif
 
 #define KSYM_NAME_LEN          128