net: dwc_eth_xgmac: Fix two Smatch reports
Get series with b4
b4 am [email protected] change-id 20250804-dwc_eth-265d9bdc33feVersions newest first
- v1 Latest2 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | net: dwc_eth_xgmac: Use unwind goto on errordrivers/ | +1 | 0 replies | |
| 2/2 | net: dwc_eth_xgmac_socfpga: Remove always true testdrivers/ | +3 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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.
Signed-off-by Andrew Goodbody <[email protected]>
---
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]>