Commit 7b066d17 authored by Zeng Tao's avatar Zeng Tao Committed by David S. Miller

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: default avatarZeng Tao <prime.zeng@hisilicon.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3753d977
...@@ -1901,8 +1901,8 @@ static void ovs_ct_limit_exit(struct net *net, struct ovs_net *ovs_net) ...@@ -1901,8 +1901,8 @@ static void ovs_ct_limit_exit(struct net *net, struct ovs_net *ovs_net)
lockdep_ovsl_is_held()) lockdep_ovsl_is_held())
kfree_rcu(ct_limit, rcu); kfree_rcu(ct_limit, rcu);
} }
kfree(ovs_net->ct_limit_info->limits); kfree(info->limits);
kfree(ovs_net->ct_limit_info); kfree(info);
} }
static struct sk_buff * static struct sk_buff *
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment