Skip to content

Commit 1d085e9

Browse files
diogo-ivodavem330
authored andcommitted
net: ti: icssg-prueth: Remove duplicate cleanup calls in emac_ndo_stop()
Remove the duplicate calls to prueth_emac_stop() and prueth_cleanup_tx_chns() in emac_ndo_stop(). Signed-off-by: Diogo Ivo <[email protected]> Reviewed-by: Roger Quadros <[email protected]> Reviewed-by: MD Danish Anwar <[email protected]> Reviewed-by: Dan Carpenter <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 21bd52e commit 1d085e9

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

drivers/net/ethernet/ti/icssg/icssg_prueth.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1489,9 +1489,6 @@ static int emac_ndo_stop(struct net_device *ndev)
14891489
/* Destroying the queued work in ndo_stop() */
14901490
cancel_delayed_work_sync(&emac->stats_work);
14911491

1492-
/* stop PRUs */
1493-
prueth_emac_stop(emac);
1494-
14951492
if (prueth->emacs_initialized == 1)
14961493
icss_iep_exit(emac->iep);
14971494

@@ -1502,7 +1499,6 @@ static int emac_ndo_stop(struct net_device *ndev)
15021499

15031500
free_irq(emac->rx_chns.irq[rx_flow], emac);
15041501
prueth_ndev_del_tx_napi(emac, emac->tx_ch_num);
1505-
prueth_cleanup_tx_chns(emac);
15061502

15071503
prueth_cleanup_rx_chns(emac, &emac->rx_chns, max_rx_flows);
15081504
prueth_cleanup_tx_chns(emac);

0 commit comments

Comments
 (0)