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: Simplify the calculation of variables

./sound/soc/sof/pcm.c:372:27-29: WARNING !A || A && B is equivalent to !A || B.

Reported-by: Abaci Robot <abaci@linux.alibaba.com
Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=4938
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com
Reviewed-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com
Link: https://lore.kernel.org/r/20230512064225.75358-1-jiapeng.chong@linux.alibaba.com
Signed-off-by: Mark Brown <broonie@kernel.org

authored by

Jiapeng Chong and committed by
Mark Brown
d904942a 7a975e9b

+1 -1
+1 -1
sound/soc/sof/pcm.c
··· 369 369 case SNDRV_PCM_TRIGGER_PAUSE_PUSH: 370 370 case SNDRV_PCM_TRIGGER_STOP: 371 371 /* invoke platform trigger to stop DMA even if pcm_ops isn't set or if it failed */ 372 - if (!pcm_ops || (pcm_ops && !pcm_ops->platform_stop_during_hw_free)) 372 + if (!pcm_ops || !pcm_ops->platform_stop_during_hw_free) 373 373 snd_sof_pcm_platform_trigger(sdev, substream, cmd); 374 374 break; 375 375 default: