perf evsel: Remove duplicate member zeroing after free
authorStephane Eranian <eranian@google.com>
Mon, 20 Jan 2014 19:15:13 +0000 (16:15 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 20 Jan 2014 19:19:09 +0000 (16:19 -0300)
No need to set evsel->fd to NULL after calling perf_evsel__free_fd(), as
this method already does that.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/n/tip-wu6kul8fpapr8iyqm685ewtf@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/evsel.c

index 22e18a26b7e6c778aefe5fb44c0cd518b5ff798d..55407c594b87f1657e8ff06f8e64ee27ba2662c2 100644 (file)
@@ -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 {