Skip to content

Commit

Permalink
[media] gspca - cpia1: Fix error check
Browse files Browse the repository at this point in the history
It looks to me like it was intended to check the return value
at this point.

Signed-off-by: Nicolas Kaiser <[email protected]>
Signed-off-by: Jean-François Moine <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
  • Loading branch information
nikai3d authored and Mauro Carvalho Chehab committed Dec 29, 2010
1 parent 7bbe6b8 commit 9be1d6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/video/gspca/cpia1.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 9be1d6c

Please sign in to comment.