projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
perf script: use ARRAY_SIZE instead of reinventing it
[platform/adaptation/renesas_rcar/renesas_kernel.git]
/
tools
/
perf
/
builtin-script.c
diff --git
a/tools/perf/builtin-script.c
b/tools/perf/builtin-script.c
index
b363e7b
..
3314ef2
100644
(file)
--- a/
tools/perf/builtin-script.c
+++ b/
tools/perf/builtin-script.c
@@
-692,7
+692,7
@@
static int parse_output_fields(const struct option *opt __maybe_unused,
const char *arg, int unset __maybe_unused)
{
char *tok;
- int i, imax =
sizeof(all_output_options) / sizeof(struct output_option
);
+ int i, imax =
ARRAY_SIZE(all_output_options
);
int j;
int rc = 0;
char *str = strdup(arg);