Commit 9be1d6cd authored by Nicolas Kaiser's avatar Nicolas Kaiser Committed by Mauro Carvalho Chehab

[media] gspca - cpia1: Fix error check

It looks to me like it was intended to check the return value
at this point.
Signed-off-by: default avatarNicolas Kaiser <nikai@nikai.net>
Signed-off-by: default avatarJean-François Moine <moinejf@free.fr>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 7bbe6b8d
...@@ -829,7 +829,7 @@ static int goto_low_power(struct gspca_dev *gspca_dev) ...@@ -829,7 +829,7 @@ static int goto_low_power(struct gspca_dev *gspca_dev)
if (ret) if (ret)
return 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) if (ret)
return ret; return ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment