perf/x86/intel: Remove an inconsistent NULL check
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 14 Oct 2016 07:29:08 +0000 (10:29 +0300)
committerIngo Molnar <mingo@kernel.org>
Sun, 16 Oct 2016 09:34:14 +0000 (11:34 +0200)
commit5c38181ce9c5182377e79271a3ed0a2d0e999c33
tree360d3a819067424076472d986eecfe52e5101941
parent9f7d416c36124667c406978bcb39746589c35d7f
perf/x86/intel: Remove an inconsistent NULL check

Smatch complains that we don't check "event->ctx" consistently.  It's
never NULL so we can just remove the check.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: David Carrillo-Cisneros <davidcc@google.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Kan Liang <kan.liang@intel.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>
Cc: kernel-janitors@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/events/intel/lbr.c