Skip to content

Commit 4f32da7

Browse files
Colin Ian KingIngo Molnar
authored andcommitted
perf/x86: Remove unused assignment to pointer 'e'
The pointer 'e' is being assigned a value that is never read, the assignment is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent 46466ae commit 4f32da7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

arch/x86/events/core.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1087,10 +1087,8 @@ int x86_schedule_events(struct cpu_hw_events *cpuc, int n, int *assign)
10871087
* validate an event group (assign == NULL)
10881088
*/
10891089
if (!unsched && assign) {
1090-
for (i = 0; i < n; i++) {
1091-
e = cpuc->event_list[i];
1090+
for (i = 0; i < n; i++)
10921091
static_call_cond(x86_pmu_commit_scheduling)(cpuc, i, assign[i]);
1093-
}
10941092
} else {
10951093
for (i = n0; i < n; i++) {
10961094
e = cpuc->event_list[i];

0 commit comments

Comments
 (0)