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

Commit 4c75968a authored by Christos Gkekas's avatar Christos Gkekas Committed by Mark Brown
Browse files

ASoC: cygnus: Remove unnecessary active_slots check



Variable active_slots is unsigned so checking whether it is less than
zero is not necessary.

Signed-off-by: default avatarChristos Gkekas <chris.gekas@gmail.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 934e4885
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -986,7 +986,7 @@ static int cygnus_set_dai_tdm_slot(struct snd_soc_dai *cpu_dai,

	active_slots = hweight32(tx_mask);

	if ((active_slots < 0) || (active_slots > 16))
	if (active_slots > 16)
		return -EINVAL;

	/* Slot value must be even */