[PATCH] ASoC: codecs: lpass-va-macro: remove some dead code

Dan Carpenter dan.carpenter at oracle.com
Wed Dec 2 19:37:39 CET 2020


On Wed, Dec 02, 2020 at 03:54:53PM +0000, Srinivas Kandagatla wrote:
> Thanks Dan for the patch!
> 
> Do you use any tools to do this checks?
> 

Yeah.  This was a Smatch warning:

sound/soc/codecs/lpass-va-macro.c:847 va_macro_hw_params() warn: always true condition '(decimator >= 0) => (0-u32max >= 0)'

But every static checker will complain about these.

regards,
dan carpenter



More information about the Alsa-devel mailing list