perf tools: No need to test against NULL before calling free()
Its perfectly fine to call free(NULL), so no need to clutter the source code with all those superfluous testing. 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> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/n/tip-uux5wpvevlerd42gqer13e7n@git.kernel.org Signed-off-by:Arnaldo Carvalho de Melo <acme@redhat.com>
Showing
- tools/perf/builtin-kvm.c 1 addition, 3 deletionstools/perf/builtin-kvm.c
- tools/perf/ui/browsers/scripts.c 1 addition, 2 deletionstools/perf/ui/browsers/scripts.c
- tools/perf/util/header.c 2 additions, 4 deletionstools/perf/util/header.c
- tools/perf/util/probe-event.c 21 additions, 41 deletionstools/perf/util/probe-event.c
- tools/perf/util/probe-finder.c 4 additions, 8 deletionstools/perf/util/probe-finder.c
- tools/perf/util/scripting-engines/trace-event-perl.c 1 addition, 2 deletionstools/perf/util/scripting-engines/trace-event-perl.c
- tools/perf/util/scripting-engines/trace-event-python.c 1 addition, 2 deletionstools/perf/util/scripting-engines/trace-event-python.c
Loading
Please register or sign in to comment