diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2010-04-14 18:59:40 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-04-14 19:11:33 -0400 |
commit | e743d31312d00932391b123dfac3324d2b9e8c81 (patch) | |
tree | e5ac3aacbfdde1fe8eb44c4e010085915da5ea05 /drivers/net/tehuti.c | |
parent | b4bf665c5761837f693e87ab27870a5868185ccc (diff) |
drivers: net: use skb_headlen()
replaces (skb->len - skb->data_len) occurrences by skb_headlen(skb)
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tehuti.c')
-rw-r--r-- | drivers/net/tehuti.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/tehuti.c b/drivers/net/tehuti.c index a38aede5c8d6..e29f495c6a2b 100644 --- a/drivers/net/tehuti.c +++ b/drivers/net/tehuti.c | |||
@@ -1508,7 +1508,7 @@ bdx_tx_map_skb(struct bdx_priv *priv, struct sk_buff *skb, | |||
1508 | int nr_frags = skb_shinfo(skb)->nr_frags; | 1508 | int nr_frags = skb_shinfo(skb)->nr_frags; |
1509 | int i; | 1509 | int i; |
1510 | 1510 | ||
1511 | db->wptr->len = skb->len - skb->data_len; | 1511 | db->wptr->len = skb_headlen(skb); |
1512 | db->wptr->addr.dma = pci_map_single(priv->pdev, skb->data, | 1512 | db->wptr->addr.dma = pci_map_single(priv->pdev, skb->data, |
1513 | db->wptr->len, PCI_DMA_TODEVICE); | 1513 | db->wptr->len, PCI_DMA_TODEVICE); |
1514 | pbl->len = CPU_CHIP_SWAP32(db->wptr->len); | 1514 | pbl->len = CPU_CHIP_SWAP32(db->wptr->len); |