From patchwork Sun Nov 8 05:54:21 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?TsOpbWV0aCBNw6FydG9u?= X-Patchwork-Id: 2019 Return-path: Envelope-to: mchehab@infradead.org Delivery-date: Sun, 08 Nov 2009 05:54:33 +0000 Received: from bombadil.infradead.org [18.85.46.34] by pedra.chehab.org with IMAP (fetchmail-6.3.6) for (single-drop); Sun, 08 Nov 2009 08:40:01 -0200 (BRST) Received: from vger.kernel.org ([209.132.176.167]) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1N70jQ-0005U5-Vs; Sun, 08 Nov 2009 05:54:33 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750753AbZKHFyU (ORCPT + 1 other); 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 From: Márton Németh Add some missing return value evaluations. Signed-off-by: Márton Németh --- -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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)