cipso: remove an unneeded NULL check in cipso_v4_doi_add()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 11 Oct 2011 22:43:53 +0000 (18:43 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 11 Oct 2011 22:43:53 +0000 (18:43 -0400)
commit56755924100261b8e52dca68ca53ece54b6f64ad
tree41dba7771c866566cc7cf53f8aa7fa61a5a45623
parent9687c637388f63b87fcc18eee6e65bcfca4f49ca
cipso: remove an unneeded NULL check in cipso_v4_doi_add()

We dereference doi_def on the line before the NULL check.  It has
been this way since 2008.  I checked all the callers and doi_def is
always non-NULL here.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/cipso_ipv4.c