perf script: Kill script_spec__delete
authorNamhyung Kim <namhyung@gmail.com>
Tue, 27 Dec 2011 15:35:51 +0000 (00:35 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 3 Jan 2012 17:06:34 +0000 (15:06 -0200)
commit466e2876bcb9ddc9b92502c46689679bee7d72a0
tree169737d7f58146fb69f3c3215bcd3df73dec051a
parent057a174a064f68bac042d618ce3c6ea3ccd9a8aa
perf script: Kill script_spec__delete

As script_spec__delete() frees given struct script_spec it should not be
called if we failed to allocate the struct. Also it's the only caller of
the function, we can get rid of the function itself.

Cc: Ingo Molnar <mingo@elte.hu>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1325000151-4463-4-git-send-email-namhyung@gmail.com
Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-script.c