Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 27264
b: refs/heads/master
c: b34b867
h: refs/heads/master
v: v3
  • Loading branch information
Pavel Roskin authored and John W. Linville committed Apr 24, 2006
1 parent 336ee73 commit 0ef1cf8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 30c2d3b48176279b1381b00ae86f3d01147d0915
refs/heads/master: b34b867e944628418d587367276c9a82e03aba8c
12 changes: 6 additions & 6 deletions trunk/drivers/net/wireless/orinoco.c
Original file line number Diff line number Diff line change
Expand Up @@ -430,19 +430,19 @@ static int orinoco_xmit(struct sk_buff *skb, struct net_device *dev)
if (! netif_running(dev)) {
printk(KERN_ERR "%s: Tx on stopped device!\n",
dev->name);
return 1;
return NETDEV_TX_BUSY;
}

if (netif_queue_stopped(dev)) {
printk(KERN_DEBUG "%s: Tx while transmitter busy!\n",
dev->name);
return 1;
return NETDEV_TX_BUSY;
}

if (orinoco_lock(priv, &flags) != 0) {
printk(KERN_ERR "%s: orinoco_xmit() called while hw_unavailable\n",
dev->name);
return 1;
return NETDEV_TX_BUSY;
}

if (! netif_carrier_ok(dev) || (priv->iw_mode == IW_MODE_MONITOR)) {
Expand All @@ -452,7 +452,7 @@ static int orinoco_xmit(struct sk_buff *skb, struct net_device *dev)
stats->tx_errors++;
orinoco_unlock(priv, &flags);
dev_kfree_skb(skb);
return 0;
return NETDEV_TX_OK;
}

/* Length of the packet body */
Expand Down Expand Up @@ -551,11 +551,11 @@ static int orinoco_xmit(struct sk_buff *skb, struct net_device *dev)

dev_kfree_skb(skb);

return 0;
return NETDEV_TX_OK;
fail:

orinoco_unlock(priv, &flags);
return err;
return NETDEV_TX_BUSY;
}

static void __orinoco_ev_alloc(struct net_device *dev, hermes_t *hw)
Expand Down

0 comments on commit 0ef1cf8

Please sign in to comment.