diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2015-06-15 09:23:52 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-06-16 14:34:02 +0300 |
commit | 061015f7bfe2e278243bcc9f04346cfc991a5342 (patch) | |
tree | e9202bbef134060c715f02ba1086718f9904c924 /sound/soc/sh/rcar/rsrc-card.c | |
parent | fe3bd18432efd42642c77a1280a22551c6549040 (diff) | |
download | linux-061015f7bfe2e278243bcc9f04346cfc991a5342.tar.xz |
ASoC: rsrc-card: tidyup return value of clock error
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>
Diffstat (limited to 'sound/soc/sh/rcar/rsrc-card.c')
-rw-r--r-- | sound/soc/sh/rcar/rsrc-card.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sound/soc/sh/rcar/rsrc-card.c b/sound/soc/sh/rcar/rsrc-card.c index d0d74b52eb1d..52123d6ceec5 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; |