diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2016-05-18 17:55:26 +0530 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-06-02 23:24:37 +0200 |
commit | a69d6b2914865965acc6df95d1aac7ff8ca35094 (patch) | |
tree | cde56f69f72657adafe667d147d82dee78ac65b4 /drivers/cpufreq/cpufreq_ondemand.c | |
parent | e788892ba3cc71d385b75895f7a375fbc659ce86 (diff) | |
download | linux-a69d6b2914865965acc6df95d1aac7ff8ca35094.tar.gz linux-a69d6b2914865965acc6df95d1aac7ff8ca35094.tar.bz2 linux-a69d6b2914865965acc6df95d1aac7ff8ca35094.zip |
cpufreq: governor: Remove prints from allocation failures
These aren't required anymore as the allocation core already prints such
messages. Remove the redundant ones.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq/cpufreq_ondemand.c')
-rw-r--r-- | drivers/cpufreq/cpufreq_ondemand.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/cpufreq/cpufreq_ondemand.c b/drivers/cpufreq/cpufreq_ondemand.c index 09d6c0c405e4..4441a11139f1 100644 --- a/drivers/cpufreq/cpufreq_ondemand.c +++ b/drivers/cpufreq/cpufreq_ondemand.c @@ -368,10 +368,8 @@ static int od_init(struct dbs_data *dbs_data, bool notify) int cpu; tuners = kzalloc(sizeof(*tuners), GFP_KERNEL); - if (!tuners) { - pr_err("%s: kzalloc failed\n", __func__); + if (!tuners) return -ENOMEM; - } cpu = get_cpu(); idle_time = get_cpu_idle_time_us(cpu, NULL); |