ASoC: rsrc-card: tidyup return value of clock error
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Mon, 15 Jun 2015 06:23:52 +0000 (06:23 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 16 Jun 2015 11:34:02 +0000 (12:34 +0100)
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tested-by: Keita Kobayashi <keita.kobayashi.ym@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sh/rcar/rsrc-card.c

index d0d74b52eb1d30cd50d81a4abb5055ba58985696..52123d6ceec50475e678fc61670f7f272765082b 100644 (file)
@@ -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;