Commit 5e359044 authored by Zheng Yongjun's avatar Zheng Yongjun Committed by David S. Miller

net: openvswitch: conntrack: simplify the return expression of ovs_ct_limit_get_default_limit()

Simplify the return expression.
Signed-off-by: default avatarZheng Yongjun <zhengyongjun3@huawei.com>
Reviewed-by: default avatarEelco Chaudron <echaudro@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8daa76a5
...@@ -2033,15 +2033,11 @@ static int ovs_ct_limit_get_default_limit(struct ovs_ct_limit_info *info, ...@@ -2033,15 +2033,11 @@ static int ovs_ct_limit_get_default_limit(struct ovs_ct_limit_info *info,
struct sk_buff *reply) struct sk_buff *reply)
{ {
struct ovs_zone_limit zone_limit; struct ovs_zone_limit zone_limit;
int err;
zone_limit.zone_id = OVS_ZONE_LIMIT_DEFAULT_ZONE; zone_limit.zone_id = OVS_ZONE_LIMIT_DEFAULT_ZONE;
zone_limit.limit = info->default_limit; 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, static int __ovs_ct_limit_get_zone_limit(struct net *net,
......
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