mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
perf header: Fix a typo on evsel
For checking return value of the strdup, 'event' should be 'evsel'. Signed-off-by: Namhyung Kim <[email protected]> Cc: David Ahern <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
This commit is contained in:
parent
eea9b68429
commit
ae42c6bb93
1 changed files with 1 additions and 1 deletions
|
|
@ -2307,7 +2307,7 @@ static int perf_evsel__set_tracepoint_name(struct perf_evsel *evsel,
|
|||
|
||||
snprintf(bf, sizeof(bf), "%s:%s", event->system, event->name);
|
||||
evsel->name = strdup(bf);
|
||||
if (event->name == NULL)
|
||||
if (evsel->name == NULL)
|
||||
return -1;
|
||||
|
||||
evsel->tp_format = event;
|
||||
|
|
|
|||
Loading…
Reference in a new issue