Commit 67fcdbfd authored by Jiapeng Chong's avatar Jiapeng Chong Committed by Mark Brown

ASoC: cs42l43: Remove useless else

The assignment of the else and if branches is the same, so the else
here is redundant, so we remove it.

./sound/soc/codecs/cs42l43-sdw.c:35:1-3: WARNING: possible condition with no effect (if == else).
Reported-by: default avatarAbaci Robot <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=6712Signed-off-by: default avatarJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Acked-by: default avatarCharles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20230928085200.48635-1-jiapeng.chong@linux.alibaba.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 6d925797
...@@ -31,10 +31,6 @@ int cs42l43_sdw_add_peripheral(struct snd_pcm_substream *substream, ...@@ -31,10 +31,6 @@ int cs42l43_sdw_add_peripheral(struct snd_pcm_substream *substream,
return -EINVAL; return -EINVAL;
snd_sdw_params_to_config(substream, params, &sconfig, &pconfig); snd_sdw_params_to_config(substream, params, &sconfig, &pconfig);
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
pconfig.num = dai->id;
else
pconfig.num = dai->id; pconfig.num = dai->id;
ret = sdw_stream_add_slave(sdw, &sconfig, &pconfig, 1, sdw_stream); ret = sdw_stream_add_slave(sdw, &sconfig, &pconfig, 1, sdw_stream);
......
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