]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: qcom: fix unsigned int bitwidth compared to less than zero
authorColin Ian King <colin.king@canonical.com>
Wed, 28 Oct 2020 11:51:12 +0000 (11:51 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 28 Oct 2020 21:33:22 +0000 (21:33 +0000)
commit45bcf07f1b1bafdd3162d0edfa9e364043ba03a6
tree23394a35f2129eeaa3d188c72acbb9ecf3c7a1de
parent61531f3faa4ab1fec21b2373ef35c9597ac32964
ASoC: qcom: fix unsigned int bitwidth compared to less than zero

The check for an error return from the call to snd_pcm_format_width
is never true as the unsigned int bitwidth can never be less than
zero. Fix this by making bitwidth an int.

Fixes: f3fe4960dd38 ("ASoC: qcom: Add support for lpass hdmi driver")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20201028115112.109017-1-colin.king@canonical.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/qcom/lpass-hdmi.c