diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2017-09-27 15:21:23 -0400 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2017-11-13 20:42:44 -0500 |
commit | e343b81e4d9d1551ec3a651a7d30630a268fd35e (patch) | |
tree | cb22d878e8857212904cc7d80ec45ac06a2c1ad2 /drivers/clk | |
parent | 0b10adbae303ecdb78c779eabb7ab587c91d324c (diff) |
clk: versatile: Delete error messages for failed memory allocations
Omit extra messages 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>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk')
-rw-r--r-- | drivers/clk/versatile/clk-icst.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/clk/versatile/clk-icst.c b/drivers/clk/versatile/clk-icst.c index 09fbe66f1f11..20ab4ceffb28 100644 --- a/drivers/clk/versatile/clk-icst.c +++ b/drivers/clk/versatile/clk-icst.c | |||
@@ -360,15 +360,12 @@ static struct clk *icst_clk_setup(struct device *dev, | |||
360 | struct icst_params *pclone; | 360 | struct icst_params *pclone; |
361 | 361 | ||
362 | icst = kzalloc(sizeof(struct clk_icst), GFP_KERNEL); | 362 | icst = kzalloc(sizeof(struct clk_icst), GFP_KERNEL); |
363 | if (!icst) { | 363 | if (!icst) |
364 | pr_err("could not allocate ICST clock!\n"); | ||
365 | return ERR_PTR(-ENOMEM); | 364 | return ERR_PTR(-ENOMEM); |
366 | } | ||
367 | 365 | ||
368 | pclone = kmemdup(desc->params, sizeof(*pclone), GFP_KERNEL); | 366 | pclone = kmemdup(desc->params, sizeof(*pclone), GFP_KERNEL); |
369 | if (!pclone) { | 367 | if (!pclone) { |
370 | kfree(icst); | 368 | kfree(icst); |
371 | pr_err("could not clone ICST params\n"); | ||
372 | return ERR_PTR(-ENOMEM); | 369 | return ERR_PTR(-ENOMEM); |
373 | } | 370 | } |
374 | 371 | ||