gro: Avoid unnecessary comparison after skb_gro_header
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 26 May 2009 18:50:28 +0000 (18:50 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 May 2009 10:26:01 +0000 (03:26 -0700)
commita5b1cf288d4200506ab62fbb86cc81ace948a306
treec95339866f4d67220d111811a92e5c6b79de6ab4
parent7489594cb249aeb178287c9a43a9e4f366044259
gro: Avoid unnecessary comparison after skb_gro_header

For the overwhelming majority of cases, skb_gro_header's return
value cannot be NULL.  Yet we must check it because of its current
form.  This patch splits it up into multiple functions in order
to avoid this.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
net/core/dev.c
net/ipv4/af_inet.c
net/ipv4/tcp.c
net/ipv6/af_inet6.c