]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: kill redundant check code in which setting ip_summed value
authorShan Wei <shanwei@cn.fujitsu.com>
Mon, 14 Jun 2010 14:20:02 +0000 (16:20 +0200)
committerPatrick McHardy <kaber@trash.net>
Mon, 14 Jun 2010 14:20:02 +0000 (16:20 +0200)
commitdb8e1e97c2e90556d8aeb0ae601cb69a6c8b6bc7
tree9891e77244749ee9d3dea22a948c80e554a27788
parent44e20986398140d7a70fbb7d7c66e3537d775a8d
netfilter: kill redundant check code in which setting ip_summed value

If the returned csum value is 0, We has set ip_summed with
CHECKSUM_UNNECESSARY flag in __skb_checksum_complete_head().

So this patch kills the check and changes to return to upper
caller directly.

Signed-off-by: Shan Wei <shanwei@cn.fujitsu.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
net/ipv4/netfilter.c
net/ipv6/netfilter.c