mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
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>
This commit is contained in:
committed by
Chanwoo Choi
parent
6942635032
commit
ddd1bbbae4
@@ -276,7 +276,7 @@ static int sm5502_muic_set_path(struct sm5502_muic_info *info,
|
|||||||
/* Return cable type of attached or detached accessories */
|
/* Return cable type of attached or detached accessories */
|
||||||
static unsigned int sm5502_muic_get_cable_type(struct sm5502_muic_info *info)
|
static unsigned int sm5502_muic_get_cable_type(struct sm5502_muic_info *info)
|
||||||
{
|
{
|
||||||
unsigned int cable_type = -1, adc, dev_type1;
|
unsigned int cable_type, adc, dev_type1;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
/* Read ADC value according to external cable or button */
|
/* Read ADC value according to external cable or button */
|
||||||
|
Reference in New Issue
Block a user