[media] gspca_stv06xx: remove an unneeded check
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 18 Feb 2014 15:00:45 +0000 (12:00 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Fri, 28 Feb 2014 17:37:59 +0000 (14:37 -0300)
"err" is zero here so we don't 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 <m.chehab@samsung.com>
drivers/media/usb/gspca/stv06xx/stv06xx_vv6410.c

index bf3e5c317a26f68273b54db5a4b271012e039cef..e60cbb3aa60950675add7e332fe86cf53a847d39 100644 (file)
@@ -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)