* [PATCH] ASoC: ti: davinci-evm: Remove redundant null check before clk_disable_unprepare
@ 2020-10-29 8:25 Xu Wang
2020-11-02 8:18 ` Peter Ujfalusi
2020-11-02 17:18 ` Mark Brown
0 siblings, 2 replies; 3+ messages in thread
From: Xu Wang @ 2020-10-29 8:25 UTC (permalink / raw)
To: peter.ujfalusi, lgirdwood, broonie, perex, tiwai, alsa-devel; +Cc: linux-kernel
Because clk_disable_unprepare() already checked NULL clock parameter,
so the additional check is unnecessary, just remove it.
Signed-off-by: Xu Wang <vulab@iscas.ac.cn>
---
sound/soc/ti/davinci-evm.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/sound/soc/ti/davinci-evm.c b/sound/soc/ti/davinci-evm.c
index 105e56ab9cdc..b043a0070d20 100644
--- a/sound/soc/ti/davinci-evm.c
+++ b/sound/soc/ti/davinci-evm.c
@@ -46,8 +46,7 @@ static void evm_shutdown(struct snd_pcm_substream *substream)
struct snd_soc_card_drvdata_davinci *drvdata =
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,
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] ASoC: ti: davinci-evm: Remove redundant null check before clk_disable_unprepare
2020-10-29 8:25 [PATCH] ASoC: ti: davinci-evm: Remove redundant null check before clk_disable_unprepare Xu Wang
@ 2020-11-02 8:18 ` Peter Ujfalusi
2020-11-02 17:18 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Peter Ujfalusi @ 2020-11-02 8:18 UTC (permalink / raw)
To: Xu Wang, lgirdwood, broonie, perex, tiwai, alsa-devel; +Cc: linux-kernel
On 29/10/2020 10.25, Xu Wang wrote:
> Because clk_disable_unprepare() already checked NULL clock parameter,
> so the additional check is unnecessary, just remove it.
Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
> Signed-off-by: Xu Wang <vulab@iscas.ac.cn>
> ---
> sound/soc/ti/davinci-evm.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/sound/soc/ti/davinci-evm.c b/sound/soc/ti/davinci-evm.c
> index 105e56ab9cdc..b043a0070d20 100644
> --- a/sound/soc/ti/davinci-evm.c
> +++ b/sound/soc/ti/davinci-evm.c
> @@ -46,8 +46,7 @@ static void evm_shutdown(struct snd_pcm_substream *substream)
> struct snd_soc_card_drvdata_davinci *drvdata =
> 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,
>
- Péter
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ASoC: ti: davinci-evm: Remove redundant null check before clk_disable_unprepare
2020-10-29 8:25 [PATCH] ASoC: ti: davinci-evm: Remove redundant null check before clk_disable_unprepare Xu Wang
2020-11-02 8:18 ` Peter Ujfalusi
@ 2020-11-02 17:18 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2020-11-02 17:18 UTC (permalink / raw)
To: tiwai, Xu Wang, alsa-devel, perex, lgirdwood, peter.ujfalusi; +Cc: linux-kernel
On Thu, 29 Oct 2020 08:25:13 +0000, Xu Wang wrote:
> Because clk_disable_unprepare() already checked NULL clock parameter,
> so the additional check is unnecessary, just remove it.
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: ti: davinci-evm: Remove redundant null check before clk_disable_unprepare
commit: ff3cfccba4dd87bb89ca185b58b38b9a74260138
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-11-02 17:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-29 8:25 [PATCH] ASoC: ti: davinci-evm: Remove redundant null check before clk_disable_unprepare Xu Wang
2020-11-02 8:18 ` Peter Ujfalusi
2020-11-02 17:18 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).