[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <19c81633-7110-260a-70c6-c55fad5607d6@users.sourceforge.net>
Date: Wed, 27 Sep 2017 15:55:17 +0200
From: SF Markus Elfring <elfring@...rs.sourceforge.net>
To: linux-clk@...r.kernel.org, linux-samsung-soc@...r.kernel.org,
Chanwoo Choi <cw00.choi@...sung.com>,
Michael Turquette <mturquette@...libre.com>,
Stephen Boyd <sboyd@...eaurora.org>,
Sylwester Nawrocki <s.nawrocki@...sung.com>,
Thomas Abraham <thomas.ab@...sung.com>,
Tomasz Figa <tomasz.figa@...il.com>
Cc: LKML <linux-kernel@...r.kernel.org>,
kernel-janitors@...r.kernel.org
Subject: [PATCH] clk: samsung: Delete an error message for a failed memory
allocation in exynos_register_cpu_clock()
From: Markus Elfring <elfring@...rs.sourceforge.net>
Date: Wed, 27 Sep 2017 15:46:53 +0200
Omit an extra message for a memory allocation failure in this function.
This issue was detected by using the Coccinelle software.
Signed-off-by: Markus Elfring <elfring@...rs.sourceforge.net>
---
drivers/clk/samsung/clk-cpu.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/clk/samsung/clk-cpu.c b/drivers/clk/samsung/clk-cpu.c
index 6686e8ba61f9..d2c99d8916b8 100644
--- a/drivers/clk/samsung/clk-cpu.c
+++ b/drivers/clk/samsung/clk-cpu.c
@@ -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;
}
--
2.14.1
Powered by blists - more mailing lists