]> git.ipfire.org Git - thirdparty/linux.git/commit
cpufreq: Use int type to store negative error codes
authorQianfeng Rong <rongqianfeng@vivo.com>
Tue, 2 Sep 2025 11:45:42 +0000 (19:45 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 5 Sep 2025 18:28:46 +0000 (20:28 +0200)
commitb49d70849530f046b1f9a42c963840ca91c60929
tree443cf53b98744559dd37880727bf6973a572a242
parent97248d05b70edc674f2f2fa835fed33172686b1d
cpufreq: Use int type to store negative error codes

Change the 'ret' variable in store_scaling_setspeed() from unsigned int to
int, as it needs to store either negative error codes or zero returned
by kstrtouint().

No effect on runtime.

Signed-off-by: Qianfeng Rong <rongqianfeng@vivo.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Link: https://patch.msgid.link/20250902114545.651661-2-rongqianfeng@vivo.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cpufreq.c