Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: SOF: Intel: hda-dai: Remove unnecessary bool conversion

Remove the unnecessary bool conversion and simplify the code.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Link: https://patch.msgid.link/20250223202547.1795-2-thorsten.blum@linux.dev
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Thorsten Blum and committed by
Mark Brown
feb84940 579a2018

+1 -1
+1 -1
sound/soc/sof/intel/hda-dai.c
··· 318 318 case SNDRV_PCM_TRIGGER_STOP: 319 319 case SNDRV_PCM_TRIGGER_SUSPEND: 320 320 ret = hda_link_dma_cleanup(substream, hext_stream, dai, 321 - cmd == SNDRV_PCM_TRIGGER_STOP ? false : true); 321 + cmd != SNDRV_PCM_TRIGGER_STOP); 322 322 if (ret < 0) { 323 323 dev_err(sdev->dev, "%s: failed to clean up link DMA\n", __func__); 324 324 return ret;