From: Nicolas Kaiser Date: Fri, 12 Nov 2010 07:32:35 +0000 (-0300) Subject: [media] gspca - cpia1: Fix error check X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=9be1d6cde936dcf9a325eeee01ed64005c98d456;p=openwrt%2Fstaging%2Fblogic.git [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 Signed-off-by: Jean-François Moine Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/gspca/cpia1.c b/drivers/media/video/gspca/cpia1.c index 80b8dae5e619..c1ae05f4661f 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;