net: dwc_eth_xgmac_socfpga: Remove always true test
authorAndrew Goodbody <andrew.goodbody@linaro.org>
Mon, 4 Aug 2025 15:11:38 +0000 (16:11 +0100)
committerTien Fong Chee <tien.fong.chee@intel.com>
Fri, 8 Aug 2025 07:59:58 +0000 (15:59 +0800)
commit28c06d67cf094fdea48e46bb01af2e9806ccd526
tree9226aed9ad48e3d3178c77eef822ebe5cf94e0b3
parent7701cc3415db98d0b2cc56ef8601939615254a2b
net: dwc_eth_xgmac_socfpga: Remove always true test

In dwxgmac_of_get_mac_mode there is a test for mac_mode which will
return if false. After this point mac_mode is guaranteed to be true so
there is no need to test for this. Remove that test.

This issue was found by Smatch.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
Reviewed-by: Tien Fong Chee <tien.fong.chee@altera.com>
drivers/net/dwc_eth_xgmac_socfpga.c