From patchwork Sun Nov 8 05:54:21 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?TsODwqltZXRoIE3Dg8KhcnRvbg==?= X-Patchwork-Id: 58445 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nA85sV0C015178 for ; Sun, 8 Nov 2009 05:54:31 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750753AbZKHFyU (ORCPT ); Sun, 8 Nov 2009 00:54:20 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750750AbZKHFyU (ORCPT ); Sun, 8 Nov 2009 00:54:20 -0500 Received: from mail02a.mail.t-online.hu ([84.2.40.7]:63728 "EHLO mail02a.mail.t-online.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750749AbZKHFyU (ORCPT ); Sun, 8 Nov 2009 00:54:20 -0500 Received: from [192.168.1.64] (dsl5402C46E.pool.t-online.hu [84.2.196.110]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail02a.mail.t-online.hu (Postfix) with ESMTPSA id 8A8C92560FC; Sun, 8 Nov 2009 06:54:04 +0100 (CET) Message-ID: <4AF65D0D.4090707@freemail.hu> Date: Sun, 08 Nov 2009 06:54:21 +0100 From: =?UTF-8?B?TsOpbWV0aCBNw6FydG9u?= User-Agent: Mozilla/5.0 (X11; U; Linux i686; hu-HU; rv:1.8.1.21) Gecko/20090402 SeaMonkey/1.1.16 MIME-Version: 1.0 To: Jean-Francois Moine , V4L Mailing List Subject: [PATCH] gspca pac7302: handle return values in sd_start() X-DCC-mail.t-online.hu-Metrics: mail02a.mail.t-online.hu 32721; Body=2 Fuz1=2 Fuz2=2 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org diff -upr a/linux/drivers/media/video/gspca/pac7302.c b/linux/drivers/media/video/gspca/pac7302.c --- a/linux/drivers/media/video/gspca/pac7302.c 2009-11-08 05:33:10.000000000 +0100 +++ b/linux/drivers/media/video/gspca/pac7302.c 2009-11-08 06:35:16.000000000 +0100 @@ -886,11 +886,11 @@ static int sd_start(struct gspca_dev *gs if (0 <= ret) ret = setbluebalance(gspca_dev); if (0 <= ret) - setgain(gspca_dev); + ret = setgain(gspca_dev); if (0 <= ret) - setexposure(gspca_dev); + ret = setexposure(gspca_dev); if (0 <= ret) - sethvflip(gspca_dev); + ret = sethvflip(gspca_dev); if (0 <= ret) ret = setedgedetect(gspca_dev); if (0 <= ret)