[media] gspca - cpia1: Fix error check
authorNicolas Kaiser <nikai@nikai.net>
Fri, 12 Nov 2010 07:32:35 +0000 (04:32 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 29 Dec 2010 10:16:41 +0000 (08:16 -0200)
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>
drivers/media/video/gspca/cpia1.c

index 80b8dae5e619d92567c3bc24fe719b2c29a86879..c1ae05f4661f240d2fc65b504f3881d41eeeac63 100644 (file)
@@ -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;