Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a69d6b29 authored by Viresh Kumar's avatar Viresh Kumar Committed by Rafael J. Wysocki
Browse files

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: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent e788892b
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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;
+1 −3
Original line number Diff line number Diff line
@@ -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);