From: Dan Carpenter Date: Tue, 31 Jan 2012 21:45:26 +0000 (+0000) Subject: xfrm6: remove unneeded NULL check in __xfrm6_output() X-Git-Tag: v3.4-rc1~177^2~433 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b11b2e4bdef20e839d90dce96c5bbeafaf9616c;p=pandora-kernel.git xfrm6: remove unneeded NULL check in __xfrm6_output() We don't check for NULL consistently in __xfrm6_output(). If "x" were NULL here it would lead to an OOPs later. I asked Steffen Klassert about this and he suggested that we remove the NULL check. On 10/29/11, Steffen Klassert wrote: >> net/ipv6/xfrm6_output.c >> 148 >> 149 if ((x && x->props.mode == XFRM_MODE_TUNNEL) && >> ^ > > x can't be null here. It would be a bug if __xfrm6_output() is called > without a xfrm_state attached to the skb. I think we can just remove > this null check. Cc: Steffen Klassert Signed-off-by: Dan Carpenter Signed-off-by: David S. Miller --- Reading git-diff-tree failed