From patchwork Sun Oct 24 16:31:43 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Kaiser X-Patchwork-Id: 265672 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o9OGYNBx016434 for ; Sun, 24 Oct 2010 16:34:23 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757988Ab0JXQeA (ORCPT ); Sun, 24 Oct 2010 12:34:00 -0400 Received: from webhosting01.bon.m2soft.com ([195.38.20.32]:60148 "EHLO webhosting01.bon.m2soft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754272Ab0JXQd7 (ORCPT ); Sun, 24 Oct 2010 12:33:59 -0400 Received: from absol.kitzblitz (91-118-62-119.dynamic.adsl-line.inode.at [91.118.62.119]) (authenticated bits=0) by webhosting01.bon.m2soft.com (8.13.8/8.13.8) with ESMTP id o9OGN5N0015705; Sun, 24 Oct 2010 18:23:05 +0200 Date: Sun, 24 Oct 2010 18:31:43 +0200 From: Nicolas Kaiser To: Jean-Francois Moine Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] media/video/gspca: fix error check Message-ID: <20101024183143.6b38d977@absol.kitzblitz> Organization: - X-Face: "fF&[w2"Nws:JNH4'g|:gVhgGKLhj|X}}&w&V?]0=, 7n`jy8D6e[Jh=7+ca|4~t5e[ItpL5 N'y~Mvi-vJm`"1T5fi1^b!&EG]6nW~C!FN},=$G?^U2t~n[3;u\"5-|~H{-5]IQ2 X-Mailer: Claws Mail (Linux) Mime-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Sun, 24 Oct 2010 16:34:23 +0000 (UTC) diff --git a/drivers/media/video/gspca/cpia1.c b/drivers/media/video/gspca/cpia1.c index 9b12168..58325db 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;