mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-27 09:02:06 +00:00
perf tools: Remove redundant err variable
Return value from perf_event__process_tracing_data() directly instead of taking this in another redundant variable. Reported-by: Zeal Robot <zealci@zte.com.cn> Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Namhyung Kim <namhyung@kernel.org> Link: http://lore.kernel.org/lkml/20220112080109.666800-1-chi.minghao@zte.com.cn Signed-off-by: CGEL ZTE <cgel.zte@gmail.com> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
b4a7276c5e
commit
f0ac5b8581
1 changed files with 1 additions and 4 deletions
|
@ -535,12 +535,9 @@ static int perf_event__repipe_exit(struct perf_tool *tool,
|
||||||
static int perf_event__repipe_tracing_data(struct perf_session *session,
|
static int perf_event__repipe_tracing_data(struct perf_session *session,
|
||||||
union perf_event *event)
|
union perf_event *event)
|
||||||
{
|
{
|
||||||
int err;
|
|
||||||
|
|
||||||
perf_event__repipe_synth(session->tool, event);
|
perf_event__repipe_synth(session->tool, event);
|
||||||
err = perf_event__process_tracing_data(session, event);
|
|
||||||
|
|
||||||
return err;
|
return perf_event__process_tracing_data(session, event);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int dso__read_build_id(struct dso *dso)
|
static int dso__read_build_id(struct dso *dso)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue