Commit 5c38181c authored by Dan Carpenter's avatar Dan Carpenter Committed by Ingo Molnar

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: default avatarDan 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: default avatarIngo Molnar <mingo@kernel.org>
parent 9f7d416c
...@@ -458,7 +458,7 @@ void intel_pmu_lbr_del(struct perf_event *event) ...@@ -458,7 +458,7 @@ void intel_pmu_lbr_del(struct perf_event *event)
if (!x86_pmu.lbr_nr) if (!x86_pmu.lbr_nr)
return; return;
if (branch_user_callstack(cpuc->br_sel) && event->ctx && if (branch_user_callstack(cpuc->br_sel) &&
event->ctx->task_ctx_data) { event->ctx->task_ctx_data) {
task_ctx = event->ctx->task_ctx_data; task_ctx = event->ctx->task_ctx_data;
task_ctx->lbr_callstack_users--; task_ctx->lbr_callstack_users--;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment