From 80dfa4b384e3ae363c3075142c3c608fc70316c4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E9=BB=84=E6=B6=9B?= Date: Mon, 7 Nov 2011 18:27:04 +0800 Subject: [PATCH] rk29: clock: fix warning: 'actual' may be used uninitialized in this function --- arch/arm/mach-rk29/clock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-rk29/clock.c b/arch/arm/mach-rk29/clock.c index 501fafe58b95..57ec2b67ea61 100755 --- a/arch/arm/mach-rk29/clock.c +++ b/arch/arm/mach-rk29/clock.c @@ -146,7 +146,7 @@ static int clksel_set_rate_div(struct clk *clk, unsigned long rate) static long clksel_round_rate_div_by_parent(struct clk *clk, unsigned long rate, struct clk *parent, unsigned long max_rate) { u32 div; - unsigned long prev = ULONG_MAX, actual; + unsigned long prev = ULONG_MAX, actual = parent->rate; if (max_rate < rate) max_rate = rate; -- 2.34.1