Commit ff3cfccb authored by Xu Wang's avatar Xu Wang Committed by Mark Brown

ASoC: ti: davinci-evm: Remove redundant null check before clk_disable_unprepare

Because clk_disable_unprepare() already checked NULL clock parameter,
so the additional check is unnecessary, just remove it.
Signed-off-by: default avatarXu Wang <vulab@iscas.ac.cn>
Acked-by: default avatarPeter Ujfalusi <peter.ujfalusi@ti.com>
Link: https://lore.kernel.org/r/20201029082513.28233-1-vulab@iscas.ac.cnSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 46713ed2
...@@ -46,8 +46,7 @@ static void evm_shutdown(struct snd_pcm_substream *substream) ...@@ -46,8 +46,7 @@ static void evm_shutdown(struct snd_pcm_substream *substream)
struct snd_soc_card_drvdata_davinci *drvdata = struct snd_soc_card_drvdata_davinci *drvdata =
snd_soc_card_get_drvdata(soc_card); snd_soc_card_get_drvdata(soc_card);
if (drvdata->mclk) clk_disable_unprepare(drvdata->mclk);
clk_disable_unprepare(drvdata->mclk);
} }
static int evm_hw_params(struct snd_pcm_substream *substream, static int evm_hw_params(struct snd_pcm_substream *substream,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment