Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c90887fe authored by Jassi Brar's avatar Jassi Brar Committed by Mark Brown
Browse files

ASoC: Samsung: Merge two identical if-else clauses



Saves two lines and a hell of a lot of embarrassment looking at the code.

Signed-off-by: default avatarJassi Brar <jaswinder.singh@linaro.org>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 62172f4a
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -761,15 +761,13 @@ static int i2s_trigger(struct snd_pcm_substream *substream,
	case SNDRV_PCM_TRIGGER_PAUSE_PUSH:
		local_irq_save(flags);

		if (capture)
		if (capture) {
			i2s_rxctrl(i2s, 0);
		else
			i2s_txctrl(i2s, 0);

		if (capture)
			i2s_fifo(i2s, FIC_RXFLUSH);
		else
		} else {
			i2s_txctrl(i2s, 0);
			i2s_fifo(i2s, FIC_TXFLUSH);
		}

		local_irq_restore(flags);
		break;