Skip to content

net: dwc_eth_xgmac: Fix two Smatch reports

Andrew Goodbody u-boot 1 version New

Get series with b4
b4 am [email protected] change-id 20250804-dwc_eth-265d9bdc33fe

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2net: dwc_eth_xgmac: Use unwind goto on errordrivers/net/dwc_eth_xgmac.c+1 -10 replies
2/2net: dwc_eth_xgmac_socfpga: Remove always true testdrivers/net/dwc_eth_xgmac_socfpga.c+3 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] net: dwc_eth_xgmac: Fix two Smatch reports

Smatch reported two issues with this driver. Firstly a direct return instead of using an unwind goto and secondly a test for a condition guaranteed to be true by an earlier test.

---
Andrew Goodbody (2):
net: dwc_eth_xgmac: Use unwind goto on error
net: dwc_eth_xgmac_socfpga: Remove always true test

 drivers/net/dwc_eth_xgmac.c         | 2 +-
 drivers/net/dwc_eth_xgmac_socfpga.c | 8 +++-----
 2 files changed, 4 insertions(+), 6 deletions(-)

---
base-commit: ae5711f881100f856ead1e76832c32b92dba93c7
change-id: 20250804-dwc_eth-265d9bdc33fe

Best regards,

Signature · 1 line
Andrew Goodbody <[email protected]>