diff mbox

[4/4] cpufreq: Drop pointless return statement

Message ID 8136755.4DucdONPzh@aspire.rjw.lan (mailing list archive)
State Mainlined
Delegated to: Rafael Wysocki
Headers show

Commit Message

Rafael J. Wysocki Nov. 23, 2017, 12:30 a.m. UTC
From: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

Drop a pointless return statement from cpufreq_unregister_governor().

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
---
 drivers/cpufreq/cpufreq.c |    1 -
 1 file changed, 1 deletion(-)

Comments

Viresh Kumar Nov. 23, 2017, 4:01 a.m. UTC | #1
On 23-11-17, 01:30, Rafael J. Wysocki wrote:
> From: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
> 
> Drop a pointless return statement from cpufreq_unregister_governor().
> 
> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
> ---
>  drivers/cpufreq/cpufreq.c |    1 -
>  1 file changed, 1 deletion(-)
> 
> Index: linux-pm/drivers/cpufreq/cpufreq.c
> ===================================================================
> --- linux-pm.orig/drivers/cpufreq/cpufreq.c
> +++ linux-pm/drivers/cpufreq/cpufreq.c
> @@ -2168,7 +2168,6 @@ void cpufreq_unregister_governor(struct
>  	mutex_lock(&cpufreq_governor_mutex);
>  	list_del(&governor->governor_list);
>  	mutex_unlock(&cpufreq_governor_mutex);
> -	return;
>  }
>  EXPORT_SYMBOL_GPL(cpufreq_unregister_governor);

Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
diff mbox

Patch

Index: linux-pm/drivers/cpufreq/cpufreq.c
===================================================================
--- linux-pm.orig/drivers/cpufreq/cpufreq.c
+++ linux-pm/drivers/cpufreq/cpufreq.c
@@ -2168,7 +2168,6 @@  void cpufreq_unregister_governor(struct
 	mutex_lock(&cpufreq_governor_mutex);
 	list_del(&governor->governor_list);
 	mutex_unlock(&cpufreq_governor_mutex);
-	return;
 }
 EXPORT_SYMBOL_GPL(cpufreq_unregister_governor);