V4L/DVB (11997): gspca - stv06xx: remove needless if check and goto
Alexey Klimov [Tue, 9 Jun 2009 10:59:40 +0000 (07:59 -0300)]
Patch removes needless if check and goto.

Signed-off-by: Alexey Klimov <klimov.linux@gmail.com>
Reviewed-by: Erik AndrĂ©n <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

drivers/media/video/gspca/stv06xx/stv06xx.c

index 9dff2e6..e573c34 100644 (file)
@@ -293,8 +293,6 @@ static void stv06xx_stopN(struct gspca_dev *gspca_dev)
                goto out;
 
        err = sd->sensor->stop(sd);
-       if (err < 0)
-               goto out;
 
 out:
        if (err < 0)