Browse Source

clk: rockchip: Remove superfluous error message in rockchip_clk_register_cpuclk()

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@users.sourceforge.net>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Markus Elfring 7 years ago
parent
commit
9edb39d750
1 changed files with 0 additions and 2 deletions
  1. 0 2
      drivers/clk/rockchip/clk-cpu.c

+ 0 - 2
drivers/clk/rockchip/clk-cpu.c

@@ -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;
 		}