[PATCH] perf script: remove some bogus error handling

2017-07-22 Thread Dan Carpenter
If script_desc__new() fails then the current code has a NULL dereference. We don't actually need to do any cleanup, we can just return NULL. Signed-off-by: Dan Carpenter diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index

[PATCH] perf script: remove some bogus error handling

2017-07-22 Thread Dan Carpenter
If script_desc__new() fails then the current code has a NULL dereference. We don't actually need to do any cleanup, we can just return NULL. Signed-off-by: Dan Carpenter diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index 83cdc0a61fd6..89ea2bc9b9be 100644 ---