diff mbox

media/video/gspca: fix error check

Message ID 20101024183143.6b38d977@absol.kitzblitz (mailing list archive)
State Accepted
Headers show

Commit Message

Nicolas Kaiser Oct. 24, 2010, 4:31 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/media/video/gspca/cpia1.c b/drivers/media/video/gspca/cpia1.c
index 9b12168..58325db 100644
--- a/drivers/media/video/gspca/cpia1.c
+++ b/drivers/media/video/gspca/cpia1.c
@@ -829,7 +829,7 @@  static int goto_low_power(struct gspca_dev *gspca_dev)
 	if (ret)
 		return ret;
 
-	do_command(gspca_dev, CPIA_COMMAND_GetCameraStatus, 0, 0, 0, 0);
+	ret = do_command(gspca_dev, CPIA_COMMAND_GetCameraStatus, 0, 0, 0, 0);
 	if (ret)
 		return ret;