mirror of
https://github.com/brain-hackers/linux-brain.git
synced 2024-06-09 23:36:23 +09:00
net: openvswitch: conntrack: simplify the return expression of ovs_ct_limit_get_default_limit()
[ Upstream commit 5e359044c107ecbdc2e9b3fd5ce296006e6de4bc ] Simplify the return expression. Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com> Reviewed-by: Eelco Chaudron <echaudro@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
d0aab59f09
commit
731abf396e
|
@ -2020,15 +2020,11 @@ static int ovs_ct_limit_get_default_limit(struct ovs_ct_limit_info *info,
|
|||
struct sk_buff *reply)
|
||||
{
|
||||
struct ovs_zone_limit zone_limit;
|
||||
int err;
|
||||
|
||||
zone_limit.zone_id = OVS_ZONE_LIMIT_DEFAULT_ZONE;
|
||||
zone_limit.limit = info->default_limit;
|
||||
err = nla_put_nohdr(reply, sizeof(zone_limit), &zone_limit);
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
return 0;
|
||||
return nla_put_nohdr(reply, sizeof(zone_limit), &zone_limit);
|
||||
}
|
||||
|
||||
static int __ovs_ct_limit_get_zone_limit(struct net *net,
|
||||
|
|
Loading…
Reference in New Issue
Block a user