net: bcmgenet: Remove duplicate test for tx_coalesce_usecs_high
Subsystems (3)
PATCH 1/1 net: bcmgenet: Remove duplicate test for tx_coalesce_usecs_high
We were checking twice for ec->tx_coalesce_usecs_high, remove the duplicate test.
Reported-by Julia Lawall <[email protected]>
Reported-by [email protected]
Fixes 2f9130709d2c19 ("net: bcmgenet: Implement TX coalescing control knobs")
Signed-off-by Florian Fainelli <[email protected]>
--- drivers/net/ethernet/broadcom/genet/bcmgenet.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/net/ethernet/broadcom/genet/bcmgenet.c +1 -2
@@ -608,8 +608,7 @@ static int bcmgenet_set_coalesce(struct net_device *dev,* transmitted, or when the ring is emtpy. */ if (ec->tx_coalesce_usecs || ec->tx_coalesce_usecs_high || - ec->tx_coalesce_usecs_irq || ec->tx_coalesce_usecs_high || - ec->tx_coalesce_usecs_low) + ec->tx_coalesce_usecs_irq || ec->tx_coalesce_usecs_low)return -EOPNOTSUPP ;/* Program all TX queues with the same values, as there is no
Signature · 1 line
2.1.0
From: Florian Fainelli <[email protected]>
Date: Fri, 18 Sep 2015 14:16:53 -0700
Quoted 7 lines
We were checking twice for
ec->tx_coalesce_usecs_high, remove the duplicate test.Reported-by Julia Lawall <[email protected]>Reported-by [email protected]Fixes 2f9130709d2c19 ("net: bcmgenet: Implement TX coalescing control knobs")Signed-off-by Florian Fainelli <[email protected]>
Applied, thanks.