Skip to content

Commit

Permalink
cpufreq: governor: Remove prints from allocation failures
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Viresh Kumar authored and Rafael J. Wysocki committed Jun 2, 2016
1 parent e788892 commit a69d6b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions drivers/cpufreq/cpufreq_conservative.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 1 addition & 3 deletions drivers/cpufreq/cpufreq_ondemand.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a69d6b2

Please sign in to comment.