From: Zeng Tao Date: Fri, 18 Sep 2020 07:14:30 +0000 (+0800) Subject: net: openswitch: reuse the helper variable to improve the code readablity X-Git-Tag: v5.10.7~1401^2~224 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7b066d173b6de76153396162085382f35010f7b4;p=platform%2Fkernel%2Flinux-rpi.git net: openswitch: reuse the helper variable to improve the code readablity 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 Signed-off-by: David S. Miller --- diff --git a/net/openvswitch/conntrack.c b/net/openvswitch/conntrack.c index a3f1204..e86b960 100644 --- 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 *