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

Commit 9298f026 authored by Stephen Boyd's avatar Stephen Boyd
Browse files

clk: h8300: Drop allocation printk and cleanup sizeof style



We don't need to print an error on allocation failures, drop it.
While we're here, change the sizeof() to be sizeof(*<ptr>) to
make code more future proof.

Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
parent 19aab273
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -98,11 +98,9 @@ static void __init h8s2678_pll_clk_setup(struct device_node *node)
	}


	pll_clock = kzalloc(sizeof(struct pll_clock), GFP_KERNEL);
	if (!pll_clock) {
		pr_err("%s: failed to alloc memory", clk_name);
	pll_clock = kzalloc(sizeof(*pll_clock), GFP_KERNEL);
	if (!pll_clock)
		return;
	}

	pll_clock->sckcr = of_iomap(node, 0);
	if (pll_clock->sckcr == NULL) {