Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Dan Carpenter and committed by
Mauro Carvalho Chehab
0a2a89c4 387a6924

+1 -1
+1 -1
drivers/media/usb/gspca/sn9c2028.c
··· 140 140 status = sn9c2028_read1(gspca_dev); 141 141 if (status < 0) { 142 142 pr_err("long command status read error %d\n", status); 143 - return (status < 0) ? status : -EIO; 143 + return status; 144 144 } 145 145 146 146 memset(reading, 0, 4);