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

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

clk: hisilicon: Delete an error message for a failed memory allocation in...


clk: hisilicon: Delete an error message for a failed memory allocation in hisi_register_clkgate_sep()

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>
Reviewed-by: default avatarLeo Yan <leo.yan@linaro.org>
Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
parent d33fb1b9
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -105,10 +105,8 @@ struct clk *hisi_register_clkgate_sep(struct device *dev, const char *name,
	struct clk_init_data init;

	sclk = kzalloc(sizeof(*sclk), GFP_KERNEL);
	if (!sclk) {
		pr_err("%s: fail to allocate separated gated clk\n", __func__);
	if (!sclk)
		return ERR_PTR(-ENOMEM);
	}

	init.name = name;
	init.ops = &clkgate_separated_ops;