mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-07-16 15:39:42 -04:00
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 <prime.zeng@hisilicon.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
3753d97790
commit
7b066d173b
@@ -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 *
|
||||
|
||||
Reference in New Issue
Block a user