diff mbox

gspca pac7302: handle return values in sd_start()

Message ID 4AF65D0D.4090707@freemail.hu (mailing list archive)
State Accepted
Headers show

Commit Message

Németh Márton Nov. 8, 2009, 5:54 a.m. UTC
None
diff mbox

Patch

diff -upr a/linux/drivers/media/video/gspca/pac7302.c b/linux/drivers/media/video/gspca/pac7302.c
--- a/linux/drivers/media/video/gspca/pac7302.c	2009-11-08 05:33:10.000000000 +0100
+++ b/linux/drivers/media/video/gspca/pac7302.c	2009-11-08 06:35:16.000000000 +0100
@@ -886,11 +886,11 @@  static int sd_start(struct gspca_dev *gs
 	if (0 <= ret)
 		ret = setbluebalance(gspca_dev);
 	if (0 <= ret)
-		setgain(gspca_dev);
+		ret = setgain(gspca_dev);
 	if (0 <= ret)
-		setexposure(gspca_dev);
+		ret = setexposure(gspca_dev);
 	if (0 <= ret)
-		sethvflip(gspca_dev);
+		ret = sethvflip(gspca_dev);
 	if (0 <= ret)
 		ret = setedgedetect(gspca_dev);
 	if (0 <= ret)