mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-10 07:10:27 +00:00
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 <colin.king@canonical.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Signed-off-by: Ingo Molnar <mingo@kernel.org> Link: https://lkml.kernel.org/r/20210804115710.109608-1-colin.king@canonical.com
This commit is contained in:
parent
46466ae3a1
commit
4f32da76a1
@ -1087,10 +1087,8 @@ int x86_schedule_events(struct cpu_hw_events *cpuc, int n, int *assign)
|
|||||||
* validate an event group (assign == NULL)
|
* validate an event group (assign == NULL)
|
||||||
*/
|
*/
|
||||||
if (!unsched && assign) {
|
if (!unsched && assign) {
|
||||||
for (i = 0; i < n; i++) {
|
for (i = 0; i < n; i++)
|
||||||
e = cpuc->event_list[i];
|
|
||||||
static_call_cond(x86_pmu_commit_scheduling)(cpuc, i, assign[i]);
|
static_call_cond(x86_pmu_commit_scheduling)(cpuc, i, assign[i]);
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
for (i = n0; i < n; i++) {
|
for (i = n0; i < n; i++) {
|
||||||
e = cpuc->event_list[i];
|
e = cpuc->event_list[i];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user