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

Commit 061015f7 authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Mark Brown
Browse files

ASoC: rsrc-card: tidyup return value of clock error

parent fe3bd184
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -283,10 +283,8 @@ rsrc_card_sub_parse_of(struct rsrc_card_priv *priv,
	 */
	if (of_property_read_bool(np, "clocks")) {
		clk = of_clk_get(np, 0);
		if (IS_ERR(clk)) {
			ret = PTR_ERR(clk);
			return ret;
		}
		if (IS_ERR(clk))
			return PTR_ERR(clk);

		dai->sysclk = clk_get_rate(clk);
		dai->clk = clk;