[PATCH] serial: lpuart: Return value from correct variable

Peng Fan (OSS) peng.fan at oss.nxp.com
Wed Aug 27 10:46:08 CEST 2025


From: Peng Fan <peng.fan at nxp.com>


On Mon, 11 Aug 2025 17:25:17 +0100, Andrew Goodbody wrote:
> In get_lpuart_clk_rate if the call to clk_get_rate returns an error then
> the call to return should pass the value of the error which is in rate
> rather than ret which will be 0 as its value is not affected by this
> error.
> 
> This issue was found by Smatch.
> 
> [...]

Applied, thanks!

[1/1] serial: lpuart: Return value from correct variable
      commit: 4d3183723f34d58cb5decec77e8bf64b84d309d1

Best regards,
-- 
Peng Fan <peng.fan at nxp.com>


More information about the U-Boot mailing list