]> git.baikalelectronics.ru Git - kernel.git/commit
gianfar: use netif_tx_queue_stopped instead of __netif_subqueue_stopped
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 18 Mar 2012 21:11:22 +0000 (17:11 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 18 Mar 2012 21:11:22 +0000 (17:11 -0400)
commit8d3067a30b04ab70e5c11164d13d41aff5537acb
treef405e986ed2b718f3a3bae81cd50bbe5b18f5b53
parent2ca67c21612a3cc730a3d47370d14ff659a19a75
gianfar: use netif_tx_queue_stopped instead of __netif_subqueue_stopped

The __netif_subqueue_stopped() just does the following:

        struct netdev_queue *txq = netdev_get_tx_queue(dev, queue_index);
        return netif_tx_queue_stopped(txq);

and since we already have the txq in scope, we can just call that
directly in this case.

Suggested-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
drivers/net/ethernet/freescale/gianfar.c