net: stmmac: platform: Delete a redundant condition branch
Subsystems (4)
PATCH 1/1 net: stmmac: platform: Delete a redundant condition branch
The statement of the last "if (xxx)" branch is the same as the "else" branch. Delete it to simplify code.
No functional change.
Signed-off-by Zhen Lei <[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
@@ -230,8 +230,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 · 8 lines
2.26.0.106.g9fadedd _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
This patch was applied to netdev/net-next.git (refs/heads/master):
Hello:
This patch was applied to netdev/net-next.git (refs/heads/master):
Quoted 8 lines · On Mon, 10 May 2021 22:10:02 +0800 you wrote:
The statement of the last "if (xxx)" branch is the same as the "else" branch. Delete it to simplify code.
No functional change.
Signed-off-by Zhen Lei <[email protected]>[...]
Here is the summary with links:
- [1/1] net: stmmac: platform: Delete a redundant condition branch
https://git.kernel.org/netdev/net-next/c/aed6864035b1
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html