Skip to content

Commit

Permalink
scripts/kallsyms: remove unneeded #ifndef ARRAY_SIZE
Browse files Browse the repository at this point in the history
This is not defined in the standard headers. #ifndef is unneeded.

Signed-off-by: Masahiro Yamada <[email protected]>
  • Loading branch information
masahir0y committed Nov 25, 2019
1 parent b1fbfcb commit 1ef26b7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions scripts/kallsyms.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 1ef26b7

Please sign in to comment.