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/atl1e/atl1e_main.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/atl1e/atl1e_main.c')
-rw-r--r-- | drivers/net/atl1e/atl1e_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/atl1e/atl1e_main.c b/drivers/net/atl1e/atl1e_main.c index b6605d433e91..7dd33776de00 100644 --- a/drivers/net/atl1e/atl1e_main.c +++ b/drivers/net/atl1e/atl1e_main.c | |||
@@ -1679,7 +1679,7 @@ static void atl1e_tx_map(struct atl1e_adapter *adapter, | |||
1679 | { | 1679 | { |
1680 | struct atl1e_tpd_desc *use_tpd = NULL; | 1680 | struct atl1e_tpd_desc *use_tpd = NULL; |
1681 | struct atl1e_tx_buffer *tx_buffer = NULL; | 1681 | struct atl1e_tx_buffer *tx_buffer = NULL; |
1682 | u16 buf_len = skb->len - skb->data_len; | 1682 | u16 buf_len = skb_headlen(skb); |
1683 | u16 map_len = 0; | 1683 | u16 map_len = 0; |
1684 | u16 mapped_len = 0; | 1684 | u16 mapped_len = 0; |
1685 | u16 hdr_len = 0; | 1685 | u16 hdr_len = 0; |