diff options
| author | Arnaldo Carvalho de Melo <[email protected]> | 2017-02-13 20:04:05 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2017-02-13 20:22:34 +0000 |
| commit | 9ef6839bcce7ca944c1ace4a7247cf13ca92a28f (patch) | |
| tree | fc426aa211d391094f890ee82604403b4743a0fa /tools/perf/util/scripting-engines/trace-event-perl.c | |
| parent | perf symbols: No need to check if sym->name is NULL (diff) | |
| download | kernel-9ef6839bcce7ca944c1ace4a7247cf13ca92a28f.tar.gz kernel-9ef6839bcce7ca944c1ace4a7247cf13ca92a28f.zip | |
perf tests record: No need to test an array against NULL
It will always evaluate to 'true', as clang warns:
CC /tmp/build/perf/tests/perf-record.o
CC /tmp/build/perf/tests/evsel-roundtrip-name.o
tests/perf-record.c:69:24: error: comparison of array 'argv' equal to a null pointer is always false [-Werror,-Wtautological-pointer-compare]
if (evlist == NULL || argv == NULL) {
^~~~ ~~~~
1 error generated.
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
