Skip to content

Commit f0ac5b8

Browse files
Minghao Chiacmel
authored andcommitted
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 <[email protected]> Signed-off-by: Minghao Chi <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Namhyung Kim <[email protected]> Link: http://lore.kernel.org/lkml/[email protected] Signed-off-by: CGEL ZTE <[email protected]> Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent b4a7276 commit f0ac5b8

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tools/perf/builtin-inject.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -535,12 +535,9 @@ static int perf_event__repipe_exit(struct perf_tool *tool,
535535
static int perf_event__repipe_tracing_data(struct perf_session *session,
536536
union perf_event *event)
537537
{
538-
int err;
539-
540538
perf_event__repipe_synth(session->tool, event);
541-
err = perf_event__process_tracing_data(session, event);
542539

543-
return err;
540+
return perf_event__process_tracing_data(session, event);
544541
}
545542

546543
static int dso__read_build_id(struct dso *dso)

0 commit comments

Comments
 (0)