summaryrefslogtreecommitdiff
path: root/sound/soc/bcm
diff options
context:
space:
mode:
authorChristos Gkekas <chris.gekas@gmail.com>2017-10-08 19:20:30 +0100
committerMark Brown <broonie@kernel.org>2017-10-09 09:41:05 +0100
commit4c75968a1bbfb3f190e2e624c83929451e4730ac (patch)
treeb608fcc8b48b74a0e40dd7d958b9d65dcd94a9a6 /sound/soc/bcm
parent934e4885cb958566a34124e5a1dad2f9212a8ec6 (diff)
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: Christos Gkekas <chris.gekas@gmail.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/bcm')
-rw-r--r--sound/soc/bcm/cygnus-ssp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/bcm/cygnus-ssp.c b/sound/soc/bcm/cygnus-ssp.c
index cd8aef8ed8a5..abafadc0b534 100644
--- a/sound/soc/bcm/cygnus-ssp.c
+++ b/sound/soc/bcm/cygnus-ssp.c
@@ -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 */