diff options
| author | Arnaldo Carvalho de Melo <[email protected]> | 2017-02-13 19:52:15 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2017-02-13 20:22:34 +0000 |
| commit | a7c3899c06865c75f8887f33d9043f6e8e780e71 (patch) | |
| tree | 1ab6a7c9ad3f707ce5113cdd034ac0c53bc88a7e /tools/perf/util/scripting-engines/trace-event-perl.c | |
| parent | perf evsel: Inform how to make a sysctl setting permanent (diff) | |
| download | kernel-a7c3899c06865c75f8887f33d9043f6e8e780e71.tar.gz kernel-a7c3899c06865c75f8887f33d9043f6e8e780e71.zip | |
perf symbols: No need to check if sym->name is NULL
As it is an array, so will always evaluate to 'true', as reported by
clang:
builtin-sched.c:2070:19: error: address of array 'sym->name' will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion]
if (sym && sym->name) {
~~ ~~~~~^~~~
1 warning generated.
So just ditch all those useless checks.
Cc: Adrian Hunter <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Wang Nan <[email protected]>
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-perl.c')
0 files changed, 0 insertions, 0 deletions
