Browse Source

[media] gspca_stv06xx: remove an unneeded check

"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>
Dan Carpenter 11 years ago
parent
commit
ce4452e65d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/media/usb/gspca/stv06xx/stv06xx_vv6410.c

+ 1 - 1
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)