From patchwork Wed Feb 16 19:48:10 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 568291 X-Patchwork-Delegate: tony@atomide.com 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 p1GJmn9f032705 for ; Wed, 16 Feb 2011 19:48:49 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753258Ab1BPTss (ORCPT ); Wed, 16 Feb 2011 14:48:48 -0500 Received: from na3sys009aog111.obsmtp.com ([74.125.149.205]:54753 "EHLO na3sys009aog111.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753135Ab1BPTss (ORCPT ); Wed, 16 Feb 2011 14:48:48 -0500 Received: from source ([209.85.214.51]) (using TLSv1) by na3sys009aob111.postini.com ([74.125.148.12]) with SMTP ID DSNKTVwp/Zf//XiI5J7kzYnVbICsRDoDuOKT@postini.com; Wed, 16 Feb 2011 11:48:47 PST Received: by mail-bw0-f51.google.com with SMTP id 10so1961105bwz.38 for ; Wed, 16 Feb 2011 11:48:13 -0800 (PST) Received: by 10.204.84.32 with SMTP id h32mr847648bkl.181.1297885693022; Wed, 16 Feb 2011 11:48:13 -0800 (PST) Received: from localhost (cs181221087.pp.htv.fi [82.181.221.87]) by mx.google.com with ESMTPS id w3sm90610bkt.5.2011.02.16.11.48.11 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 16 Feb 2011 11:48:12 -0800 (PST) Date: Wed, 16 Feb 2011 21:48:10 +0200 From: Felipe Balbi To: Tony Lindgren Cc: Felipe Balbi , Linux OMAP Mailing List Subject: Re: [PATCH 0/6] trivial compile warning fixes Message-ID: <20110216194810.GB2451@legolas.emea.dhcp.ti.com> Reply-To: balbi@ti.com References: <1297774156-23312-1-git-send-email-balbi@ti.com> <20110216173033.GG20795@atomide.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20110216173033.GG20795@atomide.com> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Wed, 16 Feb 2011 19:48:49 +0000 (UTC) From b1487889dc0e6d3c328d658e5d6730373785a49c Mon Sep 17 00:00:00 2001 From: Felipe Balbi Date: Sun, 16 Jan 2011 13:22:03 +0200 Subject: [PATCH] arm: omap2: clksel: fix compile warning Organization: Texas Instruments\n Fix the following compile warning: arch/arm/mach-omap2/clkt_clksel.c: In function '_get_div_and_fieldval': arch/arm/mach-omap2/clkt_clksel.c:100:35: warning: 'max_clkr' may be used uninitialized in this function Acked-by: Paul Walmsley Signed-off-by: Felipe Balbi --- arch/arm/mach-omap2/clkt_clksel.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-omap2/clkt_clksel.c b/arch/arm/mach-omap2/clkt_clksel.c index a781cd6..e25364d 100644 --- a/arch/arm/mach-omap2/clkt_clksel.c +++ b/arch/arm/mach-omap2/clkt_clksel.c @@ -97,7 +97,7 @@ static u8 _get_div_and_fieldval(struct clk *src_clk, struct clk *clk, u32 *field_val) { const struct clksel *clks; - const struct clksel_rate *clkr, *max_clkr; + const struct clksel_rate *clkr, *max_clkr = NULL; u8 max_div = 0; clks = _get_clksel_by_parent(clk, src_clk); -- 1.7.4.rc2