Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 809c2d9a authored by Aaron Conole's avatar Aaron Conole Committed by Pablo Neira Ayuso
Browse files

netfilter: nf_conntrack: remove double assignment



The protonet pointer will unconditionally be rewritten, so just do the
needed assignment first.

Signed-off-by: default avatarAaron Conole <aconole@bytheb.org>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent 79250568
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -441,9 +441,8 @@ EXPORT_SYMBOL_GPL(nf_ct_l4proto_unregister_one);
void nf_ct_l4proto_pernet_unregister_one(struct net *net,
					 struct nf_conntrack_l4proto *l4proto)
{
	struct nf_proto_net *pn = NULL;
	struct nf_proto_net *pn = nf_ct_l4proto_net(net, l4proto);

	pn = nf_ct_l4proto_net(net, l4proto);
	if (pn == NULL)
		return;