ASoC: wm8960: harmless underflow in wm8960_put_deemph()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 13 Oct 2015 07:09:19 +0000 (10:09 +0300)
committerMark Brown <broonie@kernel.org>
Thu, 22 Oct 2015 12:55:50 +0000 (13:55 +0100)
commitc1fe81f2cd30c18d7df444697bac8051fdf2aee6
tree8a297400c2fbe681d10291170c08d828d9ca503d
parent6ff33f3902c3b1c5d0db6b1e2c70b6d76fba357f
ASoC: wm8960: harmless underflow in wm8960_put_deemph()

We should only accept "deemph" values of zero and one, but by mistake we
accept negatives as well.  It's harmless but let's clean it up anyway.

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/wm8960.c