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

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

clk: ti: 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 7a3aad90
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -292,10 +292,8 @@ static struct clk *_register_divider(struct device *dev, const char *name,

	/* allocate the divider */
	div = kzalloc(sizeof(*div), GFP_KERNEL);
	if (!div) {
		pr_err("%s: could not allocate divider clk\n", __func__);
	if (!div)
		return ERR_PTR(-ENOMEM);
	}

	init.name = name;
	init.ops = &ti_clk_divider_ops;
+1 −3
Original line number Diff line number Diff line
@@ -108,10 +108,8 @@ static struct clk *_register_mux(struct device *dev, const char *name,

	/* allocate the mux */
	mux = kzalloc(sizeof(*mux), GFP_KERNEL);
	if (!mux) {
		pr_err("%s: could not allocate mux clk\n", __func__);
	if (!mux)
		return ERR_PTR(-ENOMEM);
	}

	init.name = name;
	init.ops = &ti_clk_mux_ops;