gspca - stv06xx: remove needless if check and goto
PATCH 1/1 gspca - stv06xx: remove needless if check and goto
Hello, Jean-Francois and Erik André
What do you think about such small change?
Looks like the code doesn't need if-check and goto here in stv06xx_stopN function. The code after label "out" does this.
--
Patch removes needless if check and goto.
--
linux/drivers/media/video/gspca/stv06xx/stv06xx.c +0 -2
@@ -293,8 +293,6 @@ goto out; err = sd->sensor->stop (sd); -if (err <0 ) - goto out; out:if (err <0 )
Signature · 1 line
Best regards, Klimov Alexey
2009/6/9 Alexey Klimov <[email protected]>:
Quoted 11 lines
Hello, Jean-Francois and Erik André
What do you think about such small change?
Looks like the code doesn't need if-check and goto here instv06xx_stopNfunction. The code after label "out" does this.--
Patch removes needless if check and goto.Signed-off-by Alexey Klimov <[email protected]>
Looks sane.
Thank you for reporting.
Best regards,
Erik
Quoted 19 lines
--
diff -red3781a79c73linux/drivers/media/video/gspca/stv06xx/stv06xx.clinux/drivers/media/video/gspca/stv06xx/stv06xx.c Tue Jun 09 14:49:04 2009 +0400 renamed from linux/drivers/media/video/gspca/stv06xx/stv06xx.c Sat Jun 06 16:31:34 2009 +0400 +0
-2@@ -293,8 +293,6 @@ goto out; err = sd->sensor->stop(sd); - if (err < 0) - goto out;out:
if (err < 0)--
Best regards, Klimov Alexey