[PATCH RESEND] usb: dwc3: Remove redundant test

Mattijs Korpershoek mkorpershoek at kernel.org
Tue Sep 30 11:55:47 CEST 2025


Hi,

On Mon, 29 Sep 2025 10:11:57 +0100, Andrew Goodbody wrote:
> In dwc3_ep0_complete_data there is a test for 'r' being null and the
> code will return at that point if so. After that point 'r' is guaranteed
> to not be null and testing for that is redundant. Remove the test for
> 'r' being non-null.
> 
> This issue was found by Smatch.
> 
> [...]

Thanks, Applied to https://source.denx.de/u-boot/custodians/u-boot-dfu (u-boot-dfu-next)

[1/1] usb: dwc3: Remove redundant test
      https://source.denx.de/u-boot/custodians/u-boot-dfu/-/commit/8cd4a5e94ba2ab73fde3301d6314549dd5a25cb4

--
Mattijs


More information about the U-Boot mailing list