[PATCH 1/1] net: stmmac: platform: Delete a redundant condition branch

Subsystems: networking drivers, stmmac ethernet driver, the rest

STALE1945d

2 messages, 2 authors, 2021-05-11 · open the first message on its own page

[PATCH 1/1] net: stmmac: platform: Delete a redundant condition branch

From: Zhen Lei <hidden>
Date: 2021-05-10 14:11:46

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 <redacted>
---
 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c | 2 --
 1 file changed, 2 deletions(-)
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
index 1e17a23d9118506..97a1fedcc9ac04d 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
@@ -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;
 
-- 
2.26.0.106.g9fadedd

Re: [PATCH 1/1] net: stmmac: platform: Delete a redundant condition branch

From: patchwork-bot+netdevbpf@kernel.org
Date: 2021-05-11 09:39:10

Hello:

This patch was applied to netdev/net-next.git (refs/heads/master):

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 <redacted>

[...]
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

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help