mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-01 15:14:52 +00:00
![]() calc_clk_div() will only return a non-zero value (-EINVAL)
in case of error. On the other hand, req->rate is an unsigned long.
It seems quite odd that req->rate would be assigned a negative value,
which is clearly not a rate, and success would be returned.
Reinstate previous logic, which would just return error.
Fixes:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
stm32_adfsdm.c | ||
stm32_i2s.c | ||
stm32_sai_sub.c | ||
stm32_sai.c | ||
stm32_sai.h | ||
stm32_spdifrx.c |