diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2015-06-04 05:52:26 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-07-06 08:26:06 -0300 |
commit | 0a2a89c4acbf2ede9cdcc51d7113091978079b7b (patch) | |
tree | cd753d097c24c8a4c2c321bb4bef4154d02e3018 /drivers/media/usb/gspca/sn9c2028.c | |
parent | 387a69243890a51be023aef12d0fdcae343f43f2 (diff) |
[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.c | 2 |
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); |