Commit e335545f authored by Markus Elfring's avatar Markus Elfring Committed by Stephen Boyd

clk: clk-xgene: Delete error messages for failed memory allocations

Omit extra messages for a memory allocation failure in these
functions.

This issue was detected by using the Coccinelle software.
Signed-off-by: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
parent bb208f21
...@@ -146,10 +146,8 @@ static struct clk *xgene_register_clk_pll(struct device *dev, ...@@ -146,10 +146,8 @@ static struct clk *xgene_register_clk_pll(struct device *dev,
/* allocate the APM clock structure */ /* allocate the APM clock structure */
apmclk = kzalloc(sizeof(*apmclk), GFP_KERNEL); apmclk = kzalloc(sizeof(*apmclk), GFP_KERNEL);
if (!apmclk) { if (!apmclk)
pr_err("%s: could not allocate APM clk\n", __func__);
return ERR_PTR(-ENOMEM); return ERR_PTR(-ENOMEM);
}
init.name = name; init.name = name;
init.ops = &xgene_clk_pll_ops; init.ops = &xgene_clk_pll_ops;
...@@ -650,10 +648,8 @@ static struct clk *xgene_register_clk(struct device *dev, ...@@ -650,10 +648,8 @@ static struct clk *xgene_register_clk(struct device *dev,
/* allocate the APM clock structure */ /* allocate the APM clock structure */
apmclk = kzalloc(sizeof(*apmclk), GFP_KERNEL); apmclk = kzalloc(sizeof(*apmclk), GFP_KERNEL);
if (!apmclk) { if (!apmclk)
pr_err("%s: could not allocate APM clk\n", __func__);
return ERR_PTR(-ENOMEM); return ERR_PTR(-ENOMEM);
}
init.name = name; init.name = name;
init.ops = &xgene_clk_ops; init.ops = &xgene_clk_ops;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment