diff options
author | Colin Ian King <colin.king@canonical.com> | 2016-08-15 12:25:43 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-08-23 14:37:33 -0400 |
commit | 6637e6f1ac62e62a353612844db21cff9a17758b (patch) | |
tree | 2e845fb946c02c689b0fae6907c6dd7ce1590d76 /tools/perf/ui | |
parent | 11196b79164c95b8e5968ff63fa6b59536c9748f (diff) |
perf hists browser: Remove superfluous null check on map
'map' is being already checked if it is NULL at the start of
do_zoom_dso(), so the second subsequent check is superfluous and can be
removed.
Signed-off-by: Colin King <colin.king@canonical.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/r/1471278343-14999-1-git-send-email-colin.king@canonical.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/ui')
-rw-r--r-- | tools/perf/ui/browsers/hists.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/tools/perf/ui/browsers/hists.c b/tools/perf/ui/browsers/hists.c index 22e48a3ebe29..f0611c937d4b 100644 --- a/tools/perf/ui/browsers/hists.c +++ b/tools/perf/ui/browsers/hists.c | |||
@@ -2440,8 +2440,6 @@ do_zoom_dso(struct hist_browser *browser, struct popup_action *act) | |||
2440 | browser->hists->dso_filter = NULL; | 2440 | browser->hists->dso_filter = NULL; |
2441 | ui_helpline__pop(); | 2441 | ui_helpline__pop(); |
2442 | } else { | 2442 | } else { |
2443 | if (map == NULL) | ||
2444 | return 0; | ||
2445 | ui_helpline__fpush("To zoom out press ESC or ENTER + \"Zoom out of %s DSO\"", | 2443 | ui_helpline__fpush("To zoom out press ESC or ENTER + \"Zoom out of %s DSO\"", |
2446 | __map__is_kernel(map) ? "the Kernel" : map->dso->short_name); | 2444 | __map__is_kernel(map) ? "the Kernel" : map->dso->short_name); |
2447 | browser->hists->dso_filter = map->dso; | 2445 | browser->hists->dso_filter = map->dso; |