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

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

clk: clk-mux: Delete an error message for a failed memory allocation



Omit an extra message 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>
[sboyd@codeaurora.org: Cleanup commit text]
Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
parent 2bd6bf03
Loading
Loading
Loading
Loading
+1 −3
Original line number Original line Diff line number Diff line
@@ -135,10 +135,8 @@ struct clk_hw *clk_hw_register_mux_table(struct device *dev, const char *name,


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


	init.name = name;
	init.name = name;
	if (clk_mux_flags & CLK_MUX_READ_ONLY)
	if (clk_mux_flags & CLK_MUX_READ_ONLY)