Skip to content

Commit

Permalink
r8169: use NETDEV_TX_{BUSY/OK}
Browse files Browse the repository at this point in the history
Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
  • Loading branch information
Francois Romieu committed Aug 31, 2006
1 parent bcf0bf9 commit 188f4af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/r8169.c
Original file line number Diff line number Diff line change
Expand Up @@ -2277,7 +2277,7 @@ static int rtl8169_start_xmit(struct sk_buff *skb, struct net_device *dev)
dma_addr_t mapping;
u32 status, len;
u32 opts1;
int ret = 0;
int ret = NETDEV_TX_OK;

if (unlikely(TX_BUFFS_AVAIL(tp) < skb_shinfo(skb)->nr_frags)) {
if (netif_msg_drv(tp)) {
Expand Down Expand Up @@ -2342,7 +2342,7 @@ static int rtl8169_start_xmit(struct sk_buff *skb, struct net_device *dev)

err_stop:
netif_stop_queue(dev);
ret = 1;
ret = NETDEV_TX_BUSY;
err_update_stats:
tp->stats.tx_dropped++;
goto out;
Expand Down

0 comments on commit 188f4af

Please sign in to comment.