From: Dan Carpenter Date: Tue, 18 Feb 2014 15:00:45 +0000 (-0300) Subject: [media] gspca_stv06xx: remove an unneeded check X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ce4452e65dad27295f7ceb553727b55e2abbdd90;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [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 bf3e5c317a26..e60cbb3aa609 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)