projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3753d97
)
net: openswitch: reuse the helper variable to improve the code readablity
author
Zeng Tao
<prime.zeng@hisilicon.com>
Fri, 18 Sep 2020 07:14:30 +0000
(15:14 +0800)
committer
David S. Miller
<davem@davemloft.net>
Fri, 18 Sep 2020 21:24:08 +0000
(14:24 -0700)
In the function ovs_ct_limit_exit, there is already a helper vaibale
which could be reused to improve the readability, so i fix it in this
patch.
Signed-off-by: Zeng Tao <prime.zeng@hisilicon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/openvswitch/conntrack.c
patch
|
blob
|
history
diff --git
a/net/openvswitch/conntrack.c
b/net/openvswitch/conntrack.c
index a3f1204f1ed27078673b74a4db679ced00366c2d..e86b9601f5b1d88d62ea019ddeda47c046fe753e 100644
(file)
--- a/
net/openvswitch/conntrack.c
+++ b/
net/openvswitch/conntrack.c
@@
-1901,8
+1901,8
@@
static void ovs_ct_limit_exit(struct net *net, struct ovs_net *ovs_net)
lockdep_ovsl_is_held())
kfree_rcu(ct_limit, rcu);
}
- kfree(
ovs_net->ct_limit_
info->limits);
- kfree(
ovs_net->ct_limit_
info);
+ kfree(info->limits);
+ kfree(info);
}
static struct sk_buff *