Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 150929
b: refs/heads/master
c: 4bd73ae
h: refs/heads/master
i:
  150927: 890c534
v: v3
  • Loading branch information
Patrick McHardy authored and David S. Miller committed Jun 13, 2009
1 parent 9071acc commit 2a97fe7
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 25 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: 3790c8cdb99f23824b23cb16df608281b335ee91
refs/heads/master: 4bd73ae2682d9069746bb049a416d9ab90c6684b
8 changes: 4 additions & 4 deletions trunk/drivers/net/irda/donauboe.c
Original file line number Diff line number Diff line change
Expand Up @@ -994,11 +994,11 @@ toshoboe_hard_xmit (struct sk_buff *skb, struct net_device *dev)

/* change speed pending, wait for its execution */
if (self->new_speed)
return -EBUSY;
return NETDEV_TX_BUSY;

/* device stopped (apm) wait for restart */
if (self->stopped)
return -EBUSY;
return NETDEV_TX_BUSY;

toshoboe_checkstuck (self);

Expand Down Expand Up @@ -1049,7 +1049,7 @@ toshoboe_hard_xmit (struct sk_buff *skb, struct net_device *dev)
if (self->txpending)
{
spin_unlock_irqrestore(&self->spinlock, flags);
return -EBUSY;
return NETDEV_TX_BUSY;
}

/* If in SIR mode we need to generate a string of XBOFs */
Expand Down Expand Up @@ -1105,7 +1105,7 @@ dumpbufs(skb->data,skb->len,'>');
,skb->len, self->ring->tx[self->txs].control, self->txpending);
toshoboe_start_DMA(self, OBOE_CONFIG0H_ENTX);
spin_unlock_irqrestore(&self->spinlock, flags);
return -EBUSY;
return NETDEV_TX_BUSY;
}

if (INB (OBOE_ENABLEH) & OBOE_ENABLEH_SIRON)
Expand Down
4 changes: 1 addition & 3 deletions trunk/drivers/net/irda/irda-usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,6 @@ static int irda_usb_hard_xmit(struct sk_buff *skb, struct net_device *netdev)
s32 speed;
s16 xbofs;
int res, mtt;
int err = 1; /* Failed */

IRDA_DEBUG(4, "%s() on %s\n", __func__, netdev->name);

Expand Down Expand Up @@ -430,7 +429,6 @@ static int irda_usb_hard_xmit(struct sk_buff *skb, struct net_device *netdev)
irda_usb_change_speed_xbofs(self);
netdev->trans_start = jiffies;
/* Will netif_wake_queue() in callback */
err = 0; /* No error */
goto drop;
}
}
Expand Down Expand Up @@ -542,7 +540,7 @@ static int irda_usb_hard_xmit(struct sk_buff *skb, struct net_device *netdev)
/* Drop silently the skb and exit */
dev_kfree_skb(skb);
spin_unlock_irqrestore(&self->lock, flags);
return err; /* Usually 1 */
return NETDEV_TX_OK;
}

/*------------------------------------------------------------------*/
Expand Down
5 changes: 1 addition & 4 deletions trunk/drivers/net/irda/kingsun-sir.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,6 @@ static int kingsun_hard_xmit(struct sk_buff *skb, struct net_device *netdev)
int wraplen;
int ret = 0;

if (skb == NULL || netdev == NULL)
return -EINVAL;

netif_stop_queue(netdev);

/* the IRDA wrapping routines don't deal with non linear skb */
Expand Down Expand Up @@ -197,7 +194,7 @@ static int kingsun_hard_xmit(struct sk_buff *skb, struct net_device *netdev)
dev_kfree_skb(skb);
spin_unlock(&kingsun->lock);

return ret;
return NETDEV_TX_OK;
}

/* Receive callback function */
Expand Down
5 changes: 1 addition & 4 deletions trunk/drivers/net/irda/ks959-sir.c
Original file line number Diff line number Diff line change
Expand Up @@ -391,9 +391,6 @@ static int ks959_hard_xmit(struct sk_buff *skb, struct net_device *netdev)
unsigned int wraplen;
int ret = 0;

if (skb == NULL || netdev == NULL)
return -EINVAL;

netif_stop_queue(netdev);

/* the IRDA wrapping routines don't deal with non linear skb */
Expand Down Expand Up @@ -428,7 +425,7 @@ static int ks959_hard_xmit(struct sk_buff *skb, struct net_device *netdev)
dev_kfree_skb(skb);
spin_unlock(&kingsun->lock);

return ret;
return NETDEV_TX_OK;
}

/* Receive callback function */
Expand Down
5 changes: 1 addition & 4 deletions trunk/drivers/net/irda/ksdazzle-sir.c
Original file line number Diff line number Diff line change
Expand Up @@ -304,9 +304,6 @@ static int ksdazzle_hard_xmit(struct sk_buff *skb, struct net_device *netdev)
unsigned int wraplen;
int ret = 0;

if (skb == NULL || netdev == NULL)
return -EINVAL;

netif_stop_queue(netdev);

/* the IRDA wrapping routines don't deal with non linear skb */
Expand Down Expand Up @@ -341,7 +338,7 @@ static int ksdazzle_hard_xmit(struct sk_buff *skb, struct net_device *netdev)
dev_kfree_skb(skb);
spin_unlock(&kingsun->lock);

return ret;
return NETDEV_TX_OK;
}

/* Receive callback function */
Expand Down
6 changes: 1 addition & 5 deletions trunk/drivers/net/irda/mcs7780.c
Original file line number Diff line number Diff line change
Expand Up @@ -824,10 +824,6 @@ static int mcs_hard_xmit(struct sk_buff *skb, struct net_device *ndev)
int wraplen;
int ret = 0;


if (skb == NULL || ndev == NULL)
return -EINVAL;

netif_stop_queue(ndev);
mcs = netdev_priv(ndev);

Expand Down Expand Up @@ -870,7 +866,7 @@ static int mcs_hard_xmit(struct sk_buff *skb, struct net_device *ndev)

dev_kfree_skb(skb);
spin_unlock_irqrestore(&mcs->lock, flags);
return ret;
return NETDEV_TX_OK;
}

static const struct net_device_ops mcs_netdev_ops = {
Expand Down

0 comments on commit 2a97fe7

Please sign in to comment.