summaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/gspca/sn9c2028.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2015-06-04 10:52:26 +0200
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-07-06 13:26:06 +0200
commit0a2a89c4acbf2ede9cdcc51d7113091978079b7b (patch)
treecd753d097c24c8a4c2c321bb4bef4154d02e3018 /drivers/media/usb/gspca/sn9c2028.c
parent[media] media/radio/saa7706h: Remove compat control ops (diff)
downloadlinux-0a2a89c4acbf2ede9cdcc51d7113091978079b7b.tar.xz
linux-0a2a89c4acbf2ede9cdcc51d7113091978079b7b.zip
[media] gspca: sn9c2028: remove an unneeded condition
We already know status is negative because of the earlier check so there is no need to check again. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/usb/gspca/sn9c2028.c')
-rw-r--r--drivers/media/usb/gspca/sn9c2028.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/usb/gspca/sn9c2028.c b/drivers/media/usb/gspca/sn9c2028.c
index c75b7388a85c..4f2050a5ec94 100644
--- a/drivers/media/usb/gspca/sn9c2028.c
+++ b/drivers/media/usb/gspca/sn9c2028.c
@@ -140,7 +140,7 @@ static int sn9c2028_long_command(struct gspca_dev *gspca_dev, u8 *command)
status = sn9c2028_read1(gspca_dev);
if (status < 0) {
pr_err("long command status read error %d\n", status);
- return (status < 0) ? status : -EIO;
+ return status;
}
memset(reading, 0, 4);