diff options
author | 2022-10-28 13:25:45 +0100 | |
---|---|---|
committer | 2022-11-15 22:30:11 +0100 | |
commit | 3ce1cb7eee70335b6d4f50fadec264473e9566c3 (patch) | |
tree | 5fecc7a1191c86c2b1b67a4f3ee3e9dd6a3f992f /kernel/events | |
parent | perf/x86: Remove unused variable 'cpu_type' (diff) | |
download | linux-3ce1cb7eee70335b6d4f50fadec264473e9566c3.tar.gz linux-3ce1cb7eee70335b6d4f50fadec264473e9566c3.tar.bz2 linux-3ce1cb7eee70335b6d4f50fadec264473e9566c3.zip |
perf: Remove unused pointer task_ctx
The pointer task_ctx is being assigned a value that is not read, the
assignment is redundant and so is the pointer. Remove it
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20221028122545.528999-1-colin.i.king@gmail.com
Diffstat (limited to 'kernel/events')
-rw-r--r-- | kernel/events/core.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/events/core.c b/kernel/events/core.c index ec2abc52c887..baa2997578a5 100644 --- a/kernel/events/core.c +++ b/kernel/events/core.c @@ -4215,7 +4215,6 @@ static bool perf_rotate_context(struct perf_cpu_pmu_context *cpc) struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); struct perf_event_pmu_context *cpu_epc, *task_epc = NULL; struct perf_event *cpu_event = NULL, *task_event = NULL; - struct perf_event_context *task_ctx = NULL; int cpu_rotate, task_rotate; struct pmu *pmu; @@ -4229,7 +4228,6 @@ static bool perf_rotate_context(struct perf_cpu_pmu_context *cpc) task_epc = cpc->task_epc; cpu_rotate = cpu_epc->rotate_necessary; - task_ctx = cpuctx->task_ctx; task_rotate = task_epc ? task_epc->rotate_necessary : 0; if (!(cpu_rotate || task_rotate)) |