aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/uwb/i1480/i1480u-wlp/tx.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/uwb/i1480/i1480u-wlp/tx.c')
-rw-r--r--drivers/uwb/i1480/i1480u-wlp/tx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/uwb/i1480/i1480u-wlp/tx.c b/drivers/uwb/i1480/i1480u-wlp/tx.c
index 39032cc3503e..26bacc009c65 100644
--- a/drivers/uwb/i1480/i1480u-wlp/tx.c
+++ b/drivers/uwb/i1480/i1480u-wlp/tx.c
@@ -117,8 +117,8 @@ void i1480u_tx_cb(struct urb *urb)
117 switch (urb->status) { 117 switch (urb->status) {
118 case 0: 118 case 0:
119 spin_lock_irqsave(&i1480u->lock, flags); 119 spin_lock_irqsave(&i1480u->lock, flags);
120 i1480u->stats.tx_packets++; 120 net_dev->stats.tx_packets++;
121 i1480u->stats.tx_bytes += urb->actual_length; 121 net_dev->stats.tx_bytes += urb->actual_length;
122 spin_unlock_irqrestore(&i1480u->lock, flags); 122 spin_unlock_irqrestore(&i1480u->lock, flags);
123 break; 123 break;
124 case -ECONNRESET: /* Not an error, but a controlled situation; */ 124 case -ECONNRESET: /* Not an error, but a controlled situation; */
@@ -530,7 +530,7 @@ int i1480u_hard_start_xmit(struct sk_buff *skb, struct net_device *net_dev)
530 return NETDEV_TX_OK; 530 return NETDEV_TX_OK;
531error: 531error:
532 dev_kfree_skb_any(skb); 532 dev_kfree_skb_any(skb);
533 i1480u->stats.tx_dropped++; 533 net_dev->stats.tx_dropped++;
534out: 534out:
535 return NETDEV_TX_OK; 535 return NETDEV_TX_OK;
536} 536}