net: clean up skb headers code
authorCong Wang <amwang@redhat.com>
Wed, 29 May 2013 07:16:05 +0000 (15:16 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 1 Jun 2013 00:02:47 +0000 (17:02 -0700)
commit 1a37e412a0225fcba5587 (net: Use 16bits for *_headers
fields of struct skbuff) converts skb->*_header to u16,
some #if NET_SKBUFF_DATA_USES_OFFSET are now useless,
and to be safe, we could just use "X = (typeof(X)) ~0U;"
as suggested by David.

Cc: David S. Miller <davem@davemloft.net>
Cc: Simon Horman <horms@verge.net.au>
Signed-off-by: Cong Wang <amwang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found