From: Zhang Rui Date: Mon, 28 Sep 2020 03:33:42 +0000 (+0800) Subject: cpufreq: intel_pstate: Fix missing return statement X-Git-Tag: v5.15~2698^2~3^2~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fc7d17551f776fda243493ce59894c1eec2a339f;p=platform%2Fkernel%2Flinux-starfive.git cpufreq: intel_pstate: Fix missing return statement Fix missing return statement when writing "off" to intel_pstate status sysfs I/F. Fixes: 55671ea3257a ("cpufreq: intel_pstate: Free memory only when turning off") Signed-off-by: Zhang Rui Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c index a827b00..9a515c4 100644 --- a/drivers/cpufreq/intel_pstate.c +++ b/drivers/cpufreq/intel_pstate.c @@ -2781,6 +2781,7 @@ static int intel_pstate_update_status(const char *buf, size_t size) cpufreq_unregister_driver(intel_pstate_driver); intel_pstate_driver_cleanup(); + return 0; } if (size == 6 && !strncmp(buf, "active", size)) {