diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2010-04-14 15:59:40 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-04-14 16:11:33 -0700 |
commit | e743d31312d00932391b123dfac3324d2b9e8c81 (patch) | |
tree | e5ac3aacbfdde1fe8eb44c4e010085915da5ea05 /drivers/atm/eni.c | |
parent | b4bf665c5761837f693e87ab27870a5868185ccc (diff) | |
download | linux-e743d31312d00932391b123dfac3324d2b9e8c81.tar.gz linux-e743d31312d00932391b123dfac3324d2b9e8c81.tar.bz2 linux-e743d31312d00932391b123dfac3324d2b9e8c81.zip |
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/atm/eni.c')
-rw-r--r-- | drivers/atm/eni.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/atm/eni.c b/drivers/atm/eni.c index 719ec5a0dca5..90a5a7cac740 100644 --- a/drivers/atm/eni.c +++ b/drivers/atm/eni.c @@ -1131,7 +1131,7 @@ DPRINTK("doing direct send\n"); /* @@@ well, this doesn't work anyway */ if (i == -1) put_dma(tx->index,eni_dev->dma,&j,(unsigned long) skb->data, - skb->len - skb->data_len); + skb_headlen(skb)); else put_dma(tx->index,eni_dev->dma,&j,(unsigned long) skb_shinfo(skb)->frags[i].page + skb_shinfo(skb)->frags[i].page_offset, |