cpufreq: Fix unsigned variable being checked for negative value
authorjhbird.choi@samsung.com <jhbird.choi@samsung.com>
Mon, 18 Mar 2013 08:09:42 +0000 (08:09 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 31 Mar 2013 23:11:35 +0000 (01:11 +0200)
commit5df6055939f295d723871d9781e73495b131b3d6
treea696a1d4d2fbf8952acf55b17b769df69911e7d1
parent27ed3cd2ebf4cd78b198be9758c538cdede36d8a
cpufreq: Fix unsigned variable being checked for negative value

clk_round_rate() returns singed value which was assigned to an unsigned
variable.
So it can't be checked for negative.

Signed-off-by: Jonghwan Choi <jhbird.choi@samsung.com>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cpufreq-cpu0.c