projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7925056
)
netfilter: nf_conntrack: remove double assignment
author
Aaron Conole
<aconole@bytheb.org>
Wed, 12 Apr 2017 20:32:54 +0000
(16:32 -0400)
committer
Pablo Neira Ayuso
<pablo@netfilter.org>
Thu, 13 Apr 2017 23:54:23 +0000
(
01:54
+0200)
The protonet pointer will unconditionally be rewritten, so just do the
needed assignment first.
Signed-off-by: Aaron Conole <aconole@bytheb.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_conntrack_proto.c
patch
|
blob
|
blame
|
history
diff --git
a/net/netfilter/nf_conntrack_proto.c
b/net/netfilter/nf_conntrack_proto.c
index 1329e090fd5e54aee668c9a6eecacd6780094543..2de6c1fe326149c5ab46f06b9ca7a3db992c4e7f 100644
(file)
--- a/
net/netfilter/nf_conntrack_proto.c
+++ b/
net/netfilter/nf_conntrack_proto.c
@@
-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;