ASoC: wm8904: harmless underflow in wm8904_put_deemph()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 13 Oct 2015 07:08:18 +0000 (10:08 +0300)
committerMark Brown <broonie@kernel.org>
Thu, 22 Oct 2015 12:54:13 +0000 (13:54 +0100)
commit931dfa6931448ccfd12d4ccd8d1d9289ceb92439
tree15e5684c4a4bd9f5373afbc0e5283bbf518e478d
parent6ff33f3902c3b1c5d0db6b1e2c70b6d76fba357f
ASoC: wm8904: harmless underflow in wm8904_put_deemph()

We try to check that "deemph" is zero or one, but because of an
underflow bug, it can also be negative.  It's fine, negative values are
handled as non-zero.  But it's messy and static checkers complain so
let's fix it.

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