Skip to content
Unverified Commit 6b27e277 authored by Colin Ian King's avatar Colin Ian King Committed by Mark Brown
Browse files

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: 8307b2af "(ASoC: stm32: sai: set sai as mclk clock provider")
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 65102238
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment