Skip to contentSkip to conversation

net: nvidia: forcedeth: Drop a condition with no effect

PATCH New Aishwarya Ramakrishnan 1 participant 1 message Jun 2, 2020

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: nvidia: forcedeth: Drop a condition with no effect

As the "else if" and "else" branch body are identical the condition has no effect. So removing "else if" condition.

---
 drivers/net/ethernet/nvidia/forcedeth.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/net/ethernet/nvidia/forcedeth.c +0 -3
index 2fc10a36afa4..87ed7e192ce9 100644
@@ -3476,9 +3476,6 @@ static int nv_update_linkspeed(struct net_device *dev)
 	} else if (adv_lpa & LPA_10FULL) {
 		newls = NVREG_LINKSPEED_FORCE|NVREG_LINKSPEED_10;
 		newdup = 1;
-	} else if (adv_lpa & LPA_10HALF) {
-		newls = NVREG_LINKSPEED_FORCE|NVREG_LINKSPEED_10;
-		newdup = 0;
 	} else {
 		newls = NVREG_LINKSPEED_FORCE|NVREG_LINKSPEED_10;
 		newdup = 0;
Signature · 1 line
2.17.1