diff mbox

[PATCHv2,1/4] OMAP4: clockdata: Make compiler shut up about possible uninitialized variable

Message ID CAFULf_wBTEVHYTPyJqWt09gNaenWHiVJCLvNdeRG204TkeBe6Q@mail.gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Bjarne Steinsbo Aug. 12, 2011, 3:27 p.m. UTC
Stop `warning: 'cpu_clkflg' may be used uninitialized in this
function' from compiler.

Signed-off-by: Bjarne Steinsbo <bsteinsbo@gmail.com>
---
V2: Oops.. Add missing sob.

 arch/arm/mach-omap2/clock44xx_data.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Felipe Balbi Aug. 16, 2011, 6:53 a.m. UTC | #1
On Fri, Aug 12, 2011 at 05:27:35PM +0200, Bjarne Steinsbo wrote:
> Stop `warning: 'cpu_clkflg' may be used uninitialized in this
> function' from compiler.
> 
> Signed-off-by: Bjarne Steinsbo <bsteinsbo@gmail.com>

Reviewed-by: Felipe Balbi <balbi@ti.com>
diff mbox

Patch

diff --git a/arch/arm/mach-omap2/clock44xx_data.c
b/arch/arm/mach-omap2/clock44xx_data.c
index 2af0e3f..a9c19c8 100644
--- a/arch/arm/mach-omap2/clock44xx_data.c
+++ b/arch/arm/mach-omap2/clock44xx_data.c
@@ -3368,7 +3368,7 @@  static struct omap_clk omap44xx_clks[] = {
 int __init omap4xxx_clk_init(void)
 {
 	struct omap_clk *c;
-	u32 cpu_clkflg;
+	u32 cpu_clkflg = 0;

 	if (cpu_is_omap44xx()) {
 		cpu_mask = RATE_IN_4430;