Message ID | 1587032223-49460-5-git-send-email-xiangxia.m.yue@gmail.com |
---|---|
State | New |
Headers | show |
Series | [net-next,v4,1/5] net: openvswitch: expand the meters supported number | expand |
diff --git a/net/openvswitch/meter.c b/net/openvswitch/meter.c index f552c64ae8df..77fe39cf4f18 100644 --- a/net/openvswitch/meter.c +++ b/net/openvswitch/meter.c @@ -390,9 +390,8 @@ static int ovs_meter_cmd_set(struct sk_buff *skb, struct genl_info *info) u32 meter_id; bool failed; - if (!a[OVS_METER_ATTR_ID]) { - return -ENODEV; - } + if (!a[OVS_METER_ATTR_ID]) + return -EINVAL; meter = dp_meter_create(a); if (IS_ERR_OR_NULL(meter))