diff mbox

[09/21] ASoC: rsrc-card: tidyup return value of clock error

Message ID 87h9q9v6dw.wl%kuninori.morimoto.gx@renesas.com (mailing list archive)
State Accepted
Commit 061015f7bfe2e278243bcc9f04346cfc991a5342
Headers show

Commit Message

Kuninori Morimoto June 15, 2015, 6:23 a.m. UTC
From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tested-by: Keita Kobayashi <keita.kobayashi.ym@renesas.com>
---
 sound/soc/sh/rcar/rsrc-card.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
diff mbox

Patch

diff --git a/sound/soc/sh/rcar/rsrc-card.c b/sound/soc/sh/rcar/rsrc-card.c
index d0d74b5..52123d6 100644
--- a/sound/soc/sh/rcar/rsrc-card.c
+++ b/sound/soc/sh/rcar/rsrc-card.c
@@ -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;