OSDN Git Service

cpufreq: powernow-k8: Drop unnecessary return statements from two functions
authorMarkus Elfring <elfring@users.sourceforge.net>
Thu, 15 Feb 2018 19:14:32 +0000 (20:14 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 27 Feb 2018 17:29:01 +0000 (18:29 +0100)
The script "checkpatch.pl" pointed information out like the following.

WARNING: void function return statements are not generally useful

Thus remove such a statement in the affected functions.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/powernow-k8.c

index 460bf22..782a8c2 100644 (file)
@@ -122,14 +122,12 @@ static int query_current_values_with_pending_wait(struct powernow_k8_data *data)
 static void count_off_irt(struct powernow_k8_data *data)
 {
        udelay((1 << data->irt) * 10);
-       return;
 }
 
 /* the voltage stabilization time */
 static void count_off_vst(struct powernow_k8_data *data)
 {
        udelay(data->vstable * VST_UNITS_20US);
-       return;
 }
 
 /* need to init the control msr to a safe value (for each cpu) */