From patchwork Sun Jan 3 20:34:59 2010 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: 2397 Return-path: Envelope-to: mchehab@infradead.org Delivery-date: Sun, 03 Jan 2010 20:35:51 +0000 Received: from bombadil.infradead.org [18.85.46.34] by pedra with IMAP (fetchmail-6.3.6) for (single-drop); Tue, 05 Jan 2010 12:05:34 -0200 (BRST) Received: from vger.kernel.org ([209.132.180.67]) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1NRXB1-0006a8-6U; Sun, 03 Jan 2010 20:35:51 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752383Ab0ACUfI (ORCPT + 1 other); Sun, 3 Jan 2010 15:35:08 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752299Ab0ACUfI (ORCPT ); Sun, 3 Jan 2010 15:35:08 -0500 Received: from mail01a.mail.t-online.hu ([84.2.40.6]:54423 "EHLO mail01a.mail.t-online.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752189Ab0ACUfH (ORCPT ); Sun, 3 Jan 2010 15:35:07 -0500 Received: from [192.168.1.64] (dsl51B6C4AD.pool.t-online.hu [81.182.196.173]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail01a.mail.t-online.hu (Postfix) with ESMTPSA id B68FF797ED5; Sun, 3 Jan 2010 21:32:42 +0100 (CET) Message-ID: <4B40FF73.2060906@freemail.hu> Date: Sun, 03 Jan 2010 21:34:59 +0100 From: =?ISO-8859-2?Q?N=E9meth_M=E1rton?= 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: Guennadi Liakhovetski CC: Hans Verkuil , V4L Mailing List Subject: [PATCH] rj54n1cb0c: remove compiler warning References: <201001031950.o03JoIjh012466@smtp-vbr4.xs4all.nl> In-Reply-To: <201001031950.o03JoIjh012466@smtp-vbr4.xs4all.nl> X-DCC-mail.t-online.hu-Metrics: mail01a.mail.t-online.hu 32721; Body=3 Fuz1=3 Fuz2=3 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org From: Márton Németh Remove the following compiler warning: 'dummy' is used uninitialized in this function. Although the result in the dummy variable is not used the program flow in soc_camera_limit_side() depends on the value in dummy. The program flow is better to be deterministic. 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 -r 62ee2b0f6556 linux/drivers/media/video/rj54n1cb0c.c --- a/linux/drivers/media/video/rj54n1cb0c.c Wed Dec 30 18:19:11 2009 +0100 +++ b/linux/drivers/media/video/rj54n1cb0c.c Sun Jan 03 21:30:20 2010 +0100 @@ -563,7 +563,7 @@ struct i2c_client *client = sd->priv; struct rj54n1 *rj54n1 = to_rj54n1(client); struct v4l2_rect *rect = &a->c; - unsigned int dummy, output_w, output_h, + unsigned int dummy = 0, output_w, output_h, input_w = rect->width, input_h = rect->height; int ret;