net: nvidia: forcedeth: Drop a condition with no effect
Subsystems (3)
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.
Signed-off-by Aishwarya Ramakrishnan <[email protected]>
--- drivers/net/ethernet/nvidia/forcedeth.c | 3 --- 1 file changed, 3 deletions(-)
drivers/net/ethernet/nvidia/forcedeth.c +0 -3
@@ -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