From: Dan Carpenter Date: Tue, 18 Feb 2014 15:00:45 +0000 (-0300) Subject: upstream: [media] gspca_stv06xx: remove an unneeded check X-Git-Tag: submit/tizen/20141121.110247~847 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ea6632a2ab62c6be56959cad5390c8f99f9b814d;p=platform%2Fkernel%2Flinux-3.10.git upstream: [media] gspca_stv06xx: remove an unneeded check "err" is zero here so we don't need to check again. Signed-off-by: Dan Carpenter Signed-off-by: Hans de Goede Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/usb/gspca/stv06xx/stv06xx_vv6410.c b/drivers/media/usb/gspca/stv06xx/stv06xx_vv6410.c index bf3e5c3..e60cbb3 100644 --- a/drivers/media/usb/gspca/stv06xx/stv06xx_vv6410.c +++ b/drivers/media/usb/gspca/stv06xx/stv06xx_vv6410.c @@ -178,7 +178,7 @@ static int vv6410_stop(struct sd *sd) PDEBUG(D_STREAM, "Halting stream"); - return (err < 0) ? err : 0; + return 0; } static int vv6410_dump(struct sd *sd)