Unverified Commit d904942a authored by Jiapeng Chong's avatar Jiapeng Chong Committed by Mark Brown
Browse files

ASoC: SOF: Simplify the calculation of variables

parent 7a975e9b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -369,7 +369,7 @@ static int sof_pcm_trigger(struct snd_soc_component *component,
	case SNDRV_PCM_TRIGGER_PAUSE_PUSH:
	case SNDRV_PCM_TRIGGER_STOP:
		/* invoke platform trigger to stop DMA even if pcm_ops isn't set or if it failed */
		if (!pcm_ops || (pcm_ops && !pcm_ops->platform_stop_during_hw_free))
		if (!pcm_ops || !pcm_ops->platform_stop_during_hw_free)
			snd_sof_pcm_platform_trigger(sdev, substream, cmd);
		break;
	default: