ASoC: wm8731: harmless underflow in wm8731_put_deemph()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 13 Oct 2015 07:08:57 +0000 (10:08 +0300)
committerMark Brown <broonie@kernel.org>
Thu, 22 Oct 2015 12:55:23 +0000 (13:55 +0100)
commit523bade22428d4c6742dd7bfb4c0259a23bb9ec3
tree84aa6e771e4617a27ecbe6612c56f40bb9349907
parent6ff33f3902c3b1c5d0db6b1e2c70b6d76fba357f
ASoC: wm8731: harmless underflow in wm8731_put_deemph()

The code tries to verify that "deemph" is zero or one, but it fails to
account for that it can be negative.  It's harmless because negatives
are treated the same as one, but we should fix it just to silence the
static checker warning.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm8731.c