mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
perf evsel: Remove duplicate member zeroing after free
No need to set evsel->fd to NULL after calling perf_evsel__free_fd(), as this method already does that. Cc: Adrian Hunter <[email protected]> Cc: David Ahern <[email protected]> Cc: Frederic Weisbecker <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Mike Galbraith <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/n/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
This commit is contained in:
parent
a761a2d8a7
commit
de256a4e6b
1 changed files with 0 additions and 1 deletions
|
|
@ -1081,7 +1081,6 @@ void perf_evsel__close(struct perf_evsel *evsel, int ncpus, int nthreads)
|
|||
|
||||
perf_evsel__close_fd(evsel, ncpus, nthreads);
|
||||
perf_evsel__free_fd(evsel);
|
||||
evsel->fd = NULL;
|
||||
}
|
||||
|
||||
static struct {
|
||||
|
|
|
|||
Loading…
Reference in a new issue