[PATCH] test: Remove not needed null check

Tom Rini trini at konsulko.com
Thu Oct 16 00:57:26 CEST 2025


On Mon, 06 Oct 2025 11:54:56 +0100, Andrew Goodbody wrote:

> In ut_report() there is a null check for stats but stats was already
> dereferenced on the line before and is again dereferenced later in the
> same function. Also the two places where ut_report() is called from will
> have initialised the parameter so there is no chance that stats will be
> null. So to prevent static analysis complaining of a use before check
> just remove the check.
> 
> [...]

Applied to u-boot/master, thanks!

[1/1] test: Remove not needed null check
      commit: aebf3a98bffa80c3e8f38f3a768bcd78ccbf401a
-- 
Tom




More information about the U-Boot mailing list