]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: Use signed type for 'ret' variable, to store negative error values
authorSrivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Fri, 6 Sep 2013 19:54:06 +0000 (01:24 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 10 Sep 2013 00:49:48 +0000 (02:49 +0200)
commit164bb85cfb99dbf992b362abdb609a3d61523c22
tree12dc11b371dd0fbfbca20db5cae5f2941c542c33
parent39ea72e9eba348d95c2e882a6d63295b8bf0329f
cpufreq: Use signed type for 'ret' variable, to store negative error values

There are places where the variable 'ret' is declared as unsigned int
and then used to store negative return values such as -EINVAL. Fix them
by declaring the variable as a signed quantity.

Signed-off-by: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cpufreq.c