aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/cpufreq/cpufreq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c
index 2f5ac2dcfda6..1f93dbd72355 100644
--- a/drivers/cpufreq/cpufreq.c
+++ b/drivers/cpufreq/cpufreq.c
@@ -404,7 +404,7 @@ static int __cpufreq_set_policy(struct cpufreq_policy *data,
404static ssize_t store_##file_name \ 404static ssize_t store_##file_name \
405(struct cpufreq_policy *policy, const char *buf, size_t count) \ 405(struct cpufreq_policy *policy, const char *buf, size_t count) \
406{ \ 406{ \
407 unsigned int ret = -EINVAL; \ 407 unsigned int ret; \
408 struct cpufreq_policy new_policy; \ 408 struct cpufreq_policy new_policy; \
409 \ 409 \
410 ret = cpufreq_get_policy(&new_policy, policy->cpu); \ 410 ret = cpufreq_get_policy(&new_policy, policy->cpu); \
@@ -459,7 +459,7 @@ static ssize_t show_scaling_governor(struct cpufreq_policy *policy, char *buf)
459static ssize_t store_scaling_governor(struct cpufreq_policy *policy, 459static ssize_t store_scaling_governor(struct cpufreq_policy *policy,
460 const char *buf, size_t count) 460 const char *buf, size_t count)
461{ 461{
462 unsigned int ret = -EINVAL; 462 unsigned int ret;
463 char str_governor[16]; 463 char str_governor[16];
464 struct cpufreq_policy new_policy; 464 struct cpufreq_policy new_policy;
465 465