]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
[media] gspca: sn9c2028: remove an unneeded condition
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 4 Jun 2015 08:52:26 +0000 (05:52 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 6 Jul 2015 11:26:06 +0000 (08:26 -0300)
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>
drivers/media/usb/gspca/sn9c2028.c

index c75b7388a85c7247547098e3161f19c89bcbbba0..4f2050a5ec941a036119eba6ad7c6730f6ac713e 100644 (file)
@@ -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);