net: stmmac: Drop condition with no effect
Subsystems (4)
PATCH 1/1 net: stmmac: Drop 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/stmicro/stmmac/stmmac_platform.c | 2 -- 1 file changed, 2 deletions(-)
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c +0 -2
@@ -229,8 +229,6 @@ static int stmmac_mtl_setup(struct platform_device *pdev, plat->tx_sched_algorithm =MTL_TX_ALGORITHM_WFQ ; else if (of_property_read_bool(tx_node, "snps,tx-sched-dwrr")) plat->tx_sched_algorithm =MTL_TX_ALGORITHM_DWRR ; - else if (of_property_read_bool(tx_node, "snps,tx-sched-sp")) - plat->tx_sched_algorithm =MTL_TX_ALGORITHM_SP ; else plat->tx_sched_algorithm = MTL_TX_ALGORITHM_SP;
Signature · 1 line
2.17.1
David Miller
maintainerFrom: Aishwarya Ramakrishnan <[email protected]>
Date: Tue, 2 Jun 2020 16:14:04 +0530
Quoted 4 lines
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]>
I'm not applying these patches, the conditional tests serve as documentation.