summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/gspca
diff options
context:
space:
mode:
authorNicolas Kaiser <nikai@nikai.net>2010-11-12 04:32:35 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-12-29 08:16:41 -0200
commit9be1d6cde936dcf9a325eeee01ed64005c98d456 (patch)
tree58bc0a5aa7b675d45fa9c62d9d33b0db31cb38ca /drivers/media/video/gspca
parent7bbe6b8d1f63c2f7482c93d8cd986b1774e6436d (diff)
downloadop-kernel-dev-9be1d6cde936dcf9a325eeee01ed64005c98d456.zip
op-kernel-dev-9be1d6cde936dcf9a325eeee01ed64005c98d456.tar.gz
[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>
Diffstat (limited to 'drivers/media/video/gspca')
-rw-r--r--drivers/media/video/gspca/cpia1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/gspca/cpia1.c b/drivers/media/video/gspca/cpia1.c
index 80b8dae..c1ae05f 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;
OpenPOWER on IntegriCloud