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>
This commit is contained in:
parent
2bd6bf03f4
commit
9edb39d750
@ -322,8 +322,6 @@ struct clk *rockchip_clk_register_cpuclk(const char *name,
|
|||||||
sizeof(*rates) * nrates,
|
sizeof(*rates) * nrates,
|
||||||
GFP_KERNEL);
|
GFP_KERNEL);
|
||||||
if (!cpuclk->rate_table) {
|
if (!cpuclk->rate_table) {
|
||||||
pr_err("%s: could not allocate memory for cpuclk rates\n",
|
|
||||||
__func__);
|
|
||||||
ret = -ENOMEM;
|
ret = -ENOMEM;
|
||||||
goto unregister_notifier;
|
goto unregister_notifier;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user