[PATCH] clk: Return value calculated by ERR_PTR
Tom Rini
trini at konsulko.com
Tue Oct 28 18:59:07 CET 2025
On Thu, 03 Jul 2025 15:40:46 +0100, Andrew Goodbody wrote:
> In clk_set_default_get_by_id ret is passed to ERR_PTR but nothing is
> done with the value that this calculates which is obviously not the
> intention of the code. This is confirmed by the code around where this
> function is called.
> Instead return the value from ERR_PTR.
>
> This issue found by Smatch.
>
> [...]
Applied to u-boot/master, thanks!
[1/1] clk: Return value calculated by ERR_PTR
commit: 644b4650ee57c429bede77f44752cc867dac0e00
--
Tom
More information about the U-Boot
mailing list