mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
cpufreq: qoriq: Drop memory allocation error messages from qoriq_cpufreq_cpu_init()
Omit extra messages for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring <[email protected]> Acked-by: Viresh Kumar <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
This commit is contained in:
parent
d430fb9984
commit
d6b96e4706
1 changed files with 2 additions and 6 deletions
|
|
@ -192,16 +192,12 @@ static int qoriq_cpufreq_cpu_init(struct cpufreq_policy *policy)
|
|||
count = clk_hw_get_num_parents(hwclk);
|
||||
|
||||
data->pclk = kcalloc(count, sizeof(struct clk *), GFP_KERNEL);
|
||||
if (!data->pclk) {
|
||||
pr_err("%s: no memory\n", __func__);
|
||||
if (!data->pclk)
|
||||
goto err_nomem2;
|
||||
}
|
||||
|
||||
table = kcalloc(count + 1, sizeof(*table), GFP_KERNEL);
|
||||
if (!table) {
|
||||
pr_err("%s: no memory\n", __func__);
|
||||
if (!table)
|
||||
goto err_pclk;
|
||||
}
|
||||
|
||||
for (i = 0; i < count; i++) {
|
||||
clk = clk_hw_get_parent_by_index(hwclk, i)->clk;
|
||||
|
|
|
|||
Loading…
Reference in a new issue