mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
[media] msi2500: Delete an unnecessary check in msi2500_set_usb_adc()
This issue was detected by using the Coccinelle software. Return the value from a call of the msi2500_ctrl_msg() function without using an extra check for the variable "ret" at the end. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
This commit is contained in:
parent
61f8e1a732
commit
a73cfe527c
1 changed files with 0 additions and 2 deletions
|
@ -839,8 +839,6 @@ static int msi2500_set_usb_adc(struct msi2500_dev *dev)
|
|||
goto err;
|
||||
|
||||
ret = msi2500_ctrl_msg(dev, CMD_WREG, reg3);
|
||||
if (ret)
|
||||
goto err;
|
||||
err:
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue