Quellcode durchsuchen

ASoC: Intel: Skylake: Update the delay check

Delay check was using ternary operator, it can be simplified to
simple if condition, so update it

Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Vinod Koul vor 9 Jahren
Ursprung
Commit
33420d6635
1 geänderte Dateien mit 3 neuen und 1 gelöschten Zeilen
  1. 3 1
      sound/soc/intel/skylake/skl-pcm.c

+ 3 - 1
sound/soc/intel/skylake/skl-pcm.c

@@ -863,7 +863,9 @@ static int skl_get_delay_from_lpib(struct hdac_ext_bus *ebus,
 		else
 			delay += hstream->bufsize;
 	}
-	delay = (hstream->bufsize == delay) ? 0 : delay;
+
+	if (hstream->bufsize == delay)
+		delay = 0;
 
 	if (delay >= hstream->period_bytes) {
 		dev_info(bus->dev,