perf thread-stack: Tidy thread_stack__push_cp() usage
authorAdrian Hunter <adrian.hunter@intel.com>
Wed, 9 Jan 2019 09:18:31 +0000 (11:18 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 6 Feb 2019 13:00:40 +0000 (10:00 -0300)
commite7a3a055f2b88ebd0bdae8b0aade1e7d80c8a81e
tree82c42aa714923ee6a2faf67b0451c0347cd8cb81
parentd6d457451eb94fa747dc202765592eb8885a7352
perf thread-stack: Tidy thread_stack__push_cp() usage

If 'cp' is checked in thread_stack__push_cp() a number of error checks
can be removed, reducing code size and improving readability.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Link: http://lkml.kernel.org/r/20190109091835.5570-3-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/thread-stack.c