diff options
author | Shan Wei <shanwei@cn.fujitsu.com> | 2011-04-22 13:07:41 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-04-28 22:28:57 +0200 |
commit | 96339d6c490a32de35fa798ca7922d13a8538ecd (patch) | |
tree | bfeab66ca069f4c4d99f30c2da23ae7c78c139e2 /drivers/net | |
parent | inet: add RCU protection to inet->opt (diff) | |
download | linux-96339d6c490a32de35fa798ca7922d13a8538ecd.tar.xz linux-96339d6c490a32de35fa798ca7922d13a8538ecd.zip |
net:use help function of skb_checksum_start_offset to calculate offset
Although these are equivalent, but the skb_checksum_start_offset() is more readable.
Signed-off-by: Shan Wei <shanwei@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/tile/tilepro.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/tile/tilepro.c b/drivers/net/tile/tilepro.c index 0825db6d883f..1e980fdd9d77 100644 --- a/drivers/net/tile/tilepro.c +++ b/drivers/net/tile/tilepro.c @@ -1930,7 +1930,7 @@ static int tile_net_tx(struct sk_buff *skb, struct net_device *dev) unsigned int len = skb->len; unsigned char *data = skb->data; - unsigned int csum_start = skb->csum_start - skb_headroom(skb); + unsigned int csum_start = skb_checksum_start_offset(skb); lepp_frag_t frags[LEPP_MAX_FRAGS]; |