Skip to contentSkip to conversation

clk: rockchip: Delete an error message for a failed memory allocation in rockchip_clk_register_cpuclk()

PATCH In review SF Markus Elfring 2 participants 2 messages Sep 27, 2017 – Sep 30, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clk: rockchip: Delete an error message for a failed memory allocation in rockchip_clk_register_cpuclk()

From: Markus Elfring <[email protected]>
Date: Wed, 27 Sep 2017 11:38:17 +0200

Omit an extra message for a memory allocation failure in this function.

This issue was detected by using the Coccinelle software.

---
 drivers/clk/rockchip/clk-cpu.c | 2 --
 1 file changed, 2 deletions(-)
drivers/clk/rockchip/clk-cpu.c +0 -2
index 0e09684d43a5..32c19c0f1e14 100644
@@ -322,8 +322,6 @@ struct clk *rockchip_clk_register_cpuclk(const char *name,
 					     sizeof(*rates) * nrates,
 					     GFP_KERNEL);
 		if (!cpuclk->rate_table) {
-			pr_err("%s: could not allocate memory for cpuclk rates\n",
-			       __func__);
 			ret = -ENOMEM;
 			goto unregister_notifier;
 		}
Signature · 1 line
2.14.1
maintainer
#1 lore raw

Am Mittwoch, 27. September 2017, 11:44:30 CEST schrieb SF Markus Elfring:

Quoted 8 lines

From: Markus Elfring <[email protected]>
Date: Wed, 27 Sep 2017 11:38:17 +0200

Omit an extra message for a memory allocation failure in this function.

This issue was detected by using the Coccinelle software.

applied for 4.15 after shortening the patch subject a bit

Thanks
Heiko