Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 209854
b: refs/heads/master
c: 79c5f51
h: refs/heads/master
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Aug 19, 2010
1 parent 2c40995 commit e04738b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: 9c38657cfcb739b7dc4ce9065a85b4f0c195bef8
refs/heads/master: 79c5f51c639021f7472591239c3867cee4b9ec02
4 changes: 3 additions & 1 deletion trunk/net/irda/irlan/irlan_eth.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ static netdev_tx_t irlan_eth_xmit(struct sk_buff *skb,
{
struct irlan_cb *self = netdev_priv(dev);
int ret;
unsigned int len;

/* skb headroom large enough to contain all IrDA-headers? */
if ((skb_headroom(skb) < self->max_header_size) || (skb_shared(skb))) {
Expand All @@ -188,6 +189,7 @@ static netdev_tx_t irlan_eth_xmit(struct sk_buff *skb,

dev->trans_start = jiffies;

len = skb->len;
/* Now queue the packet in the transport layer */
if (self->use_udata)
ret = irttp_udata_request(self->tsap_data, skb);
Expand All @@ -209,7 +211,7 @@ static netdev_tx_t irlan_eth_xmit(struct sk_buff *skb,
self->stats.tx_dropped++;
} else {
self->stats.tx_packets++;
self->stats.tx_bytes += skb->len;
self->stats.tx_bytes += len;
}

return NETDEV_TX_OK;
Expand Down

0 comments on commit e04738b

Please sign in to comment.