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

Commit 8834b095 authored by Markus Elfring's avatar Markus Elfring Committed by Sylwester Nawrocki
Browse files

clk: samsung: Delete a memory allocation error message in clk-cpu.c



Omit an extra message for a memory allocation failure
in exynos_register_cpu_clock() function.

This issue was detected by using the Coccinelle software.

Signed-off-by: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarSylwester Nawrocki <s.nawrocki@samsung.com>
parent 2bd6bf03
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -457,8 +457,6 @@ int __init exynos_register_cpu_clock(struct samsung_clk_provider *ctx,

	cpuclk->cfg = kmemdup(cfg, sizeof(*cfg) * num_cfgs, GFP_KERNEL);
	if (!cpuclk->cfg) {
		pr_err("%s: could not allocate memory for cpuclk data\n",
				__func__);
		ret = -ENOMEM;
		goto unregister_clk_nb;
	}