[alsa-devel] [patch] ASoC: wm8731: harmless underflow in wm8731_put_deemph()

Charles Keepax ckeepax at opensource.wolfsonmicro.com
Tue Oct 13 14:27:33 CEST 2015


On Tue, Oct 13, 2015 at 10:08:57AM +0300, Dan Carpenter wrote:
> 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 at oracle.com>

Acked-by: Charles Keepax <ckeepax at opensource.wolfsonmicro.com>

Thanks,
Charles


More information about the Alsa-devel mailing list