net: stmmac: platform: Delete a redundant condition branch
authorZhen Lei <thunder.leizhen@huawei.com>
Mon, 10 May 2021 14:10:02 +0000 (22:10 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 10 May 2021 21:50:00 +0000 (14:50 -0700)
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 <thunder.leizhen@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c

index 1e17a23..97a1fed 100644 (file)
@@ -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;