netfilter: conntrack: __nf_ct_l4proto_find() always returns valid pointer
authorPablo Neira Ayuso <pablo@netfilter.org>
Sat, 30 Apr 2016 22:34:37 +0000 (00:34 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 5 May 2016 14:39:48 +0000 (16:39 +0200)
commit4b4ceb9dbf6a549682edff9fc5f04c204da50ab9
tree0a6d4c5efe84ed884a377560d46b0da061eb6135
parent3e86638e9a0be8bcf7db007909d8307b8b9f8e3b
netfilter: conntrack: __nf_ct_l4proto_find() always returns valid pointer

Remove unnecessary check for non-nul pointer in destroy_conntrack()
given that __nf_ct_l4proto_find() returns the generic protocol tracker
if the protocol is not supported.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_conntrack_core.c