[Linux-stm32] [PATCH] ASoC: stm32: sai: Fix unsigned comparison with less than zero

Mark Brown broonie at kernel.org
Thu Nov 29 11:55:45 UTC 2018


On Thu, Nov 29, 2018 at 10:06:11AM +0800, Wen Yang wrote:
> The return from the call to stm32_sai_get_clk_div can be a negative error
> code however this is being assigned to an unsigned variable 'div'
> hence the check is always false. Fix this by making 'div' an
> int.

This doesn't apply against current code, please check and resend.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://st-md-mailman.stormreply.com/pipermail/linux-stm32/attachments/20181129/c01314e7/attachment.sig>


More information about the Linux-stm32 mailing list