Skip to content

Commit

Permalink
ASoC: cs35l56: Remove NULL check from cs35l56_sdw_dai_set_stream()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Richard Fitzgerald authored and Mark Brown committed Jun 1, 2023
1 parent 3a67ad1 commit 524306c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions sound/soc/codecs/cs35l56.c
Original file line number Diff line number Diff line change
Expand Up @@ -704,9 +704,6 @@ static int cs35l56_sdw_dai_hw_free(struct snd_pcm_substream *substream,
static int cs35l56_sdw_dai_set_stream(struct snd_soc_dai *dai,
void *sdw_stream, int direction)
{
if (!sdw_stream)
return 0;

snd_soc_dai_dma_data_set(dai, direction, sdw_stream);

return 0;
Expand Down

0 comments on commit 524306c

Please sign in to comment.