Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e343b81e authored by Markus Elfring's avatar Markus Elfring Committed by Stephen Boyd
Browse files

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: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
parent 0b10adba
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -360,15 +360,12 @@ static struct clk *icst_clk_setup(struct device *dev,
	struct icst_params *pclone;

	icst = kzalloc(sizeof(struct clk_icst), GFP_KERNEL);
	if (!icst) {
		pr_err("could not allocate ICST clock!\n");
	if (!icst)
		return ERR_PTR(-ENOMEM);
	}

	pclone = kmemdup(desc->params, sizeof(*pclone), GFP_KERNEL);
	if (!pclone) {
		kfree(icst);
		pr_err("could not clone ICST params\n");
		return ERR_PTR(-ENOMEM);
	}