projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8e3873
)
net: openvswitch: make EINVAL return value more obvious
author
Tonghao Zhang
<xiangxia.m.yue@gmail.com>
Fri, 24 Apr 2020 00:08:05 +0000
(08:08 +0800)
committer
David S. Miller
<davem@davemloft.net>
Fri, 24 Apr 2020 01:26:11 +0000
(18:26 -0700)
Cc: Pravin B Shelar <pshelar@ovn.org>
Cc: Andy Zhou <azhou@ovn.org>
Signed-off-by: Tonghao Zhang <xiangxia.m.yue@gmail.com>
Acked-by: Pravin B Shelar <pshelar@ovn.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/openvswitch/meter.c
patch
|
blob
|
history
diff --git
a/net/openvswitch/meter.c
b/net/openvswitch/meter.c
index
b7893b0
..
e36b464
100644
(file)
--- a/
net/openvswitch/meter.c
+++ b/
net/openvswitch/meter.c
@@
-419,9
+419,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))