diff options
author | Ursula Braun <ursula.braun@de.ibm.com> | 2009-03-23 23:27:46 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-03-24 18:24:29 -0400 |
commit | 8f0c40d4b6a6207ef2105d94544a9d1c0835c4ab (patch) | |
tree | 4ec1869e9dbc37f19f3e25bdf116590b5e510a79 /drivers/s390/net | |
parent | 4e584d66ea60cf3d921aea78372f4e4d48a9155d (diff) |
claw: invalid return codes from hard_start_xmit
Avoid kernel warnings by using the correct hard_start_xmit return
code NETDEV_TX_BUSY for skb requeuing.
Signed-off-by: Ursula Braun <ursula.braun@de.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/s390/net')
-rw-r--r-- | drivers/s390/net/claw.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/s390/net/claw.c b/drivers/s390/net/claw.c index 6669adf355be..a4524ecd9dc4 100644 --- a/drivers/s390/net/claw.c +++ b/drivers/s390/net/claw.c | |||
@@ -348,6 +348,8 @@ claw_tx(struct sk_buff *skb, struct net_device *dev) | |||
348 | rc=claw_hw_tx( skb, dev, 1 ); | 348 | rc=claw_hw_tx( skb, dev, 1 ); |
349 | spin_unlock_irqrestore(get_ccwdev_lock(p_ch->cdev), saveflags); | 349 | spin_unlock_irqrestore(get_ccwdev_lock(p_ch->cdev), saveflags); |
350 | CLAW_DBF_TEXT_(4, trace, "clawtx%d", rc); | 350 | CLAW_DBF_TEXT_(4, trace, "clawtx%d", rc); |
351 | if (rc) | ||
352 | rc = NETDEV_TX_BUSY; | ||
351 | return rc; | 353 | return rc; |
352 | } /* end of claw_tx */ | 354 | } /* end of claw_tx */ |
353 | 355 | ||