]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7dc7af4a2a037e3bb4a828408c4d1bb77d681c98
tree84aa6e771e4617a27ecbe6612c56f40bb9349907
parent935a478e4144e0a4f690471a4a1d8ad5718a721b
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