ARC: perf: Remove redundant initialization of variable idx
authorColin Ian King <colin.i.king@googlemail.com>
Fri, 26 Nov 2021 22:23:12 +0000 (22:23 +0000)
committerVineet Gupta <vineetg@rivosinc.com>
Wed, 29 Dec 2021 03:48:48 +0000 (19:48 -0800)
commite296c2e1cd70b2dd9b3c294c37ed4e14833b3f31
tree3a1646e22dd6c10cc7aac05aa3ebad8db6282ffc
parent753150ada5e9c43ffa4cd3de552923656e962519
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>
arch/arc/kernel/perf_event.c