From: Dan Carpenter Date: Tue, 18 Feb 2014 15:00:45 +0000 (-0300) Subject: [media] gspca_stv06xx: remove an unneeded check X-Git-Tag: v3.15-rc1~85^2~324 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ce4452e65dad27295f7ceb553727b55e2abbdd90;p=thirdparty%2Fkernel%2Flinux.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 bf3e5c317a26f..e60cbb3aa6095 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)