]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
cpufreq: governor: Remove prints from allocation failures
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 18 May 2016 12:25:26 +0000 (17:55 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 2 Jun 2016 21:24:37 +0000 (23:24 +0200)
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>
drivers/cpufreq/cpufreq_conservative.c
drivers/cpufreq/cpufreq_ondemand.c

index 2568508fca38787a24b393a03e44aafab9193db1..78faa9fbc384f889f5e21e187bc4b92d12cc9391 100644 (file)
@@ -273,10 +273,8 @@ static int cs_init(struct dbs_data *dbs_data, bool notify)
        struct cs_dbs_tuners *tuners;
 
        tuners = kzalloc(sizeof(*tuners), GFP_KERNEL);
-       if (!tuners) {
-               pr_err("%s: kzalloc failed\n", __func__);
+       if (!tuners)
                return -ENOMEM;
-       }
 
        tuners->down_threshold = DEF_FREQUENCY_DOWN_THRESHOLD;
        tuners->freq_step = DEF_FREQUENCY_STEP;
index 09d6c0c405e4f4e049a049fb55793884db7f74c0..4441a11139f1a68ab14f1bbdac8dc6fc55e1d64a 100644 (file)
@@ -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);