diff options
author | Arnaldo Carvalho de Melo <[email protected]> | 2017-02-13 17:11:03 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2017-02-13 17:22:35 -0300 |
commit | 5eae7d842510d33d4410c062280eda6c935403dd (patch) | |
tree | 3761779adda8056d41ac3d203e2a9be1194d9db8 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | 9ef6839bcce7ca944c1ace4a7247cf13ca92a28f (diff) |
perf symbols: dso->name is an array, no need to check it against NULL
As it will always evaluate to 'true', as reported by clang:
util/map.c:390:36: error: address of array 'map->dso->name' will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion]
if (map && map->dso && (map->dso->name || map->dso->long_name)) {
~~~~~~~~~~^~~~ ~~
util/map.c:393:22: error: address of array 'map->dso->name' will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion]
else if (map->dso->name)
~~ ~~~~~~~~~~^~~~
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/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions