summaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/msi2500
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2015-12-29 12:32:41 +0100
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2016-01-25 18:15:39 +0100
commita73cfe527c10bb023f0e22dd8cf37dd418c093e7 (patch)
tree3e1077f8dfbff4836c15ff01b8b30dd0f076663a /drivers/media/usb/msi2500
parent[media] r820t: Delete an unnecessary variable initialisation in generic_set_f... (diff)
downloadlinux-a73cfe527c10bb023f0e22dd8cf37dd418c093e7.tar.xz
linux-a73cfe527c10bb023f0e22dd8cf37dd418c093e7.zip
[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>
Diffstat (limited to 'drivers/media/usb/msi2500')
-rw-r--r--drivers/media/usb/msi2500/msi2500.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/media/usb/msi2500/msi2500.c b/drivers/media/usb/msi2500/msi2500.c
index c104315fdc17..2d33033682af 100644
--- a/drivers/media/usb/msi2500/msi2500.c
+++ b/drivers/media/usb/msi2500/msi2500.c
@@ -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;
}