extcon: remove redundant assignment to variable idx
authorColin Ian King <colin.king@canonical.com>
Wed, 15 Apr 2020 23:08:21 +0000 (00:08 +0100)
committerChanwoo Choi <cw00.choi@samsung.com>
Fri, 29 May 2020 08:36:01 +0000 (17:36 +0900)
commit1fa80f182794bbefe8f1bffd74abda5470cdd973
tree4be2a46b81b421440a21acc70f51768c6a7060a2
parent2ef96a5bb12be62ef75b5828c0aab838ebb29cb8
extcon: remove redundant assignment to variable idx

The variable idx is being initialized with a value that is never read
and it is being updated later with a new value.  The initialization is
redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon.c