extcon: sm5502: remove redundant assignment to variable cable_type
authorColin Ian King <colin.king@canonical.com>
Fri, 25 Oct 2019 13:12:27 +0000 (14:12 +0100)
committerChanwoo Choi <cw00.choi@samsung.com>
Thu, 31 Oct 2019 04:47:42 +0000 (13:47 +0900)
commitddd1bbbae486ff5913c8fc72c853dcea60713236
tree36b52432c4bebc4e0fd0b3171fc8def046845c1e
parent6942635032cfd3e003e980d2dfa4e6323a3ce145
extcon: sm5502: remove redundant assignment to variable cable_type

The variable cable_type is being initialized with a value that
is never read and is being re-assigned a little later on. The
assignment is redundant and hence 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-sm5502.c