未验证 提交 b9f0a8ff 编写于 作者: D Dan Carpenter 提交者: Mark Brown

ASoC: mediatek: mt8186: remove unnecessary NULL check

The "i2s_priv" pointer cannot be NULL.  Some NULL checks were deleted
in commit d7bffbe9 ("ASoC: mediatek: mt8186: remove unnecessary
judgments") but this one was accidentally left behind.
Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/Yuo7LGPk8KnBW6ac@kiliSigned-off-by: NMark Brown <broonie@kernel.org>
上级 eab9100d
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册