* [PATCH] ASoC: mediatek: mt8186: remove unnecessary NULL check
@ 2022-08-03 9:09 Dan Carpenter
2022-08-15 16:22 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: Dan Carpenter @ 2022-08-03 9:09 UTC (permalink / raw)
To: Liam Girdwood, Jiaxin Yu
Cc: Mark Brown, Jaroslav Kysela, Takashi Iwai, Matthias Brugger,
AngeloGioacchino Del Regno, alsa-devel, linux-mediatek,
kernel-janitors
The "i2s_priv" pointer cannot be NULL. Some NULL checks were deleted
in commit d7bffbe9cbd3 ("ASoC: mediatek: mt8186: remove unnecessary
judgments") but this one was accidentally left behind.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
---
sound/soc/mediatek/mt8186/mt8186-dai-i2s.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/mediatek/mt8186/mt8186-dai-i2s.c b/sound/soc/mediatek/mt8186/mt8186-dai-i2s.c
index ec79e2f2a54d..d7a227169548 100644
--- a/sound/soc/mediatek/mt8186/mt8186-dai-i2s.c
+++ b/sound/soc/mediatek/mt8186/mt8186-dai-i2s.c
@@ -968,7 +968,7 @@ static int mtk_dai_i2s_config(struct mtk_base_afe *afe,
}
/* set share i2s */
- if (i2s_priv && i2s_priv->share_i2s_id >= 0) {
+ if (i2s_priv->share_i2s_id >= 0) {
ret = mtk_dai_i2s_config(afe, params, i2s_priv->share_i2s_id);
if (ret)
return ret;
--
2.35.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ASoC: mediatek: mt8186: remove unnecessary NULL check
2022-08-03 9:09 [PATCH] ASoC: mediatek: mt8186: remove unnecessary NULL check Dan Carpenter
@ 2022-08-15 16:22 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2022-08-15 16:22 UTC (permalink / raw)
To: Jiaxin Yu, Dan Carpenter, Liam Girdwood
Cc: Jaroslav Kysela, kernel-janitors, Takashi Iwai, alsa-devel,
Matthias Brugger, AngeloGioacchino Del Regno, linux-mediatek
On Wed, 3 Aug 2022 12:09:00 +0300, Dan Carpenter wrote:
> The "i2s_priv" pointer cannot be NULL. Some NULL checks were deleted
> in commit d7bffbe9cbd3 ("ASoC: mediatek: mt8186: remove unnecessary
> judgments") but this one was accidentally left behind.
>
>
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: mediatek: mt8186: remove unnecessary NULL check
commit: b9f0a8ffd6265e7d8c7464a7990330da85ee07ef
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] 2+ messages in thread
end of thread, other threads:[~2022-08-15 16:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-03 9:09 [PATCH] ASoC: mediatek: mt8186: remove unnecessary NULL check Dan Carpenter
2022-08-15 16:22 ` 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).