diff options
author | Colin Ian King <colin.i.king@googlemail.com> | 2021-11-27 01:23:12 +0300 |
---|---|---|
committer | Vineet Gupta <vineetg@rivosinc.com> | 2021-12-29 06:48:48 +0300 |
commit | e296c2e1cd70b2dd9b3c294c37ed4e14833b3f31 (patch) | |
tree | 3a1646e22dd6c10cc7aac05aa3ebad8db6282ffc /arch | |
parent | 753150ada5e9c43ffa4cd3de552923656e962519 (diff) | |
download | linux-e296c2e1cd70b2dd9b3c294c37ed4e14833b3f31.tar.xz |
ARC: perf: Remove redundant initialization of variable idx
The variable idx is being initialized with a value that is never
read, it is being updated later on. The assignment is redundant and
can be removed.
Reviewed-by: Vladimir Isaev <isaev@synopsys.com>
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Signed-off-by: Vineet Gupta <vineetg@rivosinc.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arc/kernel/perf_event.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arc/kernel/perf_event.c b/arch/arc/kernel/perf_event.c index 145722f80c9b..f5dd799ddb9e 100644 --- a/arch/arc/kernel/perf_event.c +++ b/arch/arc/kernel/perf_event.c @@ -361,7 +361,7 @@ static int arc_pmu_add(struct perf_event *event, int flags) { struct arc_pmu_cpu *pmu_cpu = this_cpu_ptr(&arc_pmu_cpu); struct hw_perf_event *hwc = &event->hw; - int idx = hwc->idx; + int idx; idx = ffz(pmu_cpu->used_mask[0]); if (idx == arc_pmu->n_counters) |