diff options
author | 2017-05-22 12:03:49 +0300 | |
---|---|---|
committer | 2017-05-23 09:50:05 +0200 | |
commit | 85c617abc786d7da9e95c0b4174159864dd3f85c (patch) | |
tree | 05407fe86516a3ea9c017f591703ae7df6e63daf /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | perf/x86: Add sysfs entry to freeze counters on SMI (diff) | |
download | wireguard-linux-85c617abc786d7da9e95c0b4174159864dd3f85c.tar.xz wireguard-linux-85c617abc786d7da9e95c0b4174159864dd3f85c.zip |
perf/core: Remove some dead code
perf_init_event() can't return NULL. If it did, the error handling is
incomplete and we would crash. I have removed this confusing dead code.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Vince Weaver <vincent.weaver@maine.edu>
Link: http://lkml.kernel.org/r/20170522090348.5g7yyld5en3yeky4@mwanda
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions