diff --git a/arch/x86/events/intel/lbr.c b/arch/x86/events/intel/lbr.c index 1bd72e900498c4fd97c3e0303b2516753740aa28..439b09d33856d823191808ef805fe9790d535474 100644 --- a/arch/x86/events/intel/lbr.c +++ b/arch/x86/events/intel/lbr.c @@ -440,8 +440,7 @@ void intel_pmu_lbr_add(struct perf_event *event) } cpuc->br_sel = event->hw.branch_reg.reg; - if (branch_user_callstack(cpuc->br_sel) && event->ctx && - event->ctx->task_ctx_data) { + if (branch_user_callstack(cpuc->br_sel) && event->ctx->task_ctx_data) { task_ctx = event->ctx->task_ctx_data; task_ctx->lbr_callstack_users++; }