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/myri10ge | |
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/myri10ge')
-rw-r--r-- | drivers/net/myri10ge/myri10ge.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/myri10ge/myri10ge.c b/drivers/net/myri10ge/myri10ge.c index 958dc283d0e7..e0b47cc8a86e 100644 --- a/drivers/net/myri10ge/myri10ge.c +++ b/drivers/net/myri10ge/myri10ge.c | |||
@@ -2757,7 +2757,7 @@ again: | |||
2757 | } | 2757 | } |
2758 | 2758 | ||
2759 | /* map the skb for DMA */ | 2759 | /* map the skb for DMA */ |
2760 | len = skb->len - skb->data_len; | 2760 | len = skb_headlen(skb); |
2761 | idx = tx->req & tx->mask; | 2761 | idx = tx->req & tx->mask; |
2762 | tx->info[idx].skb = skb; | 2762 | tx->info[idx].skb = skb; |
2763 | bus = pci_map_single(mgp->pdev, skb->data, len, PCI_DMA_TODEVICE); | 2763 | bus = pci_map_single(mgp->pdev, skb->data, len, PCI_DMA_TODEVICE); |