linux/sound/soc/stm
Colin Ian King 6b27e27729
ASoC: stm32: sai: fix less than zero comparison on unsigned int
Currently, the comparison of div < 0 is always false because div is
an unsigned int. Fix this by making div an int.

Detected by CoverityScan, CID#1475309 ("Unsigned compared against 0")

Fixes: 8307b2afd3 "(ASoC: stm32: sai: set sai as mclk clock provider")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2018-11-05 10:33:06 +00:00
..
Kconfig ASoC: stm32: add clock dependency for sai 2018-10-23 10:51:44 +01:00
Makefile ASoC: stm32: add DFSDM DAI support 2018-01-10 10:52:05 +00:00
stm32_adfsdm.c ASoC: stm32: remove redundant pointers 'priv' and 'rtd' 2018-08-01 12:16:26 +01:00
stm32_i2s.c ASoC: stm32: explicitly request exclusive reset control 2017-07-19 17:07:04 +01:00
stm32_sai_sub.c ASoC: stm32: sai: fix less than zero comparison on unsigned int 2018-11-05 10:33:06 +00:00
stm32_sai.c ASoC: Convert to using %pOFn instead of device_node.name 2018-08-28 19:07:00 +01:00
stm32_sai.h ASoC: stm32: sai: set sai as mclk clock provider 2018-10-19 13:12:07 +01:00
stm32_spdifrx.c ASoC: stm32: spdifrx: Use default dai name 2018-02-12 12:04:33 +00:00