net: caif: convert to using IFF_NO_QUEUE

Signed-off-by: Phil Sutter <[email protected]>
Cc: Dmitry Tarnyagin <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
Phil Sutter 2015-08-18 10:30:46 +02:00 • committed by David S. Miller
commit 4676a15207
5 changed files with 5 additions and 5 deletions

View file

@ -177,7 +177,7 @@ static int transmit(struct cflayer *layer, struct cfpkt *pkt)
skb->protocol = htons(ETH_P_CAIF);
/* Check if we need to handle xoff */
if (likely(caifd->netdev->tx_queue_len == 0))
if (likely(caifd->netdev->priv_flags & IFF_NO_QUEUE))
goto noxoff;
if (unlikely(caifd->xoff))