Skip to content

Commit 524306c

Browse files
rfvirgilbroonie
authored andcommitted
ASoC: cs35l56: Remove NULL check from cs35l56_sdw_dai_set_stream()
The dma pointer must be set to the passed stream pointer, even if that pointer is NULL. Fixes: e496112 ("ASoC: cs35l56: Add driver for Cirrus Logic CS35L56") Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com> Link: https://lore.kernel.org/r/20230601124907.3128170-1-rf@opensource.cirrus.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 3a67ad1 commit 524306c

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

sound/soc/codecs/cs35l56.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -704,9 +704,6 @@ static int cs35l56_sdw_dai_hw_free(struct snd_pcm_substream *substream,
704704
static int cs35l56_sdw_dai_set_stream(struct snd_soc_dai *dai,
705705
void *sdw_stream, int direction)
706706
{
707-
if (!sdw_stream)
708-
return 0;
709-
710707
snd_soc_dai_dma_data_set(dai, direction, sdw_stream);
711708

712709
return 0;

0 commit comments

Comments
 (0)