[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: Nicolas Kaiser <nikai@nikai.net> Signed-off-by: Jean-François Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
7bbe6b8d1f
commit
9be1d6cde9
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue