projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0372bf5
)
openvswitch: use PTR_ERR_OR_ZERO
author
Fabian Frederick
<fabf@skynet.be>
Fri, 14 Nov 2014 18:32:58 +0000
(19:32 +0100)
committer
David S. Miller
<davem@davemloft.net>
Sun, 16 Nov 2014 19:41:39 +0000
(14:41 -0500)
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/openvswitch/flow_netlink.c
patch
|
blob
|
blame
|
history
diff --git
a/net/openvswitch/flow_netlink.c
b/net/openvswitch/flow_netlink.c
index c0d066def228fddd64ff1b0a0c8195e5992ec642..c8fccdded865454ff982ebb36a1d650d186d89d7 100644
(file)
--- a/
net/openvswitch/flow_netlink.c
+++ b/
net/openvswitch/flow_netlink.c
@@
-1425,10
+1425,8
@@
static int add_action(struct sw_flow_actions **sfa, int attrtype,
struct nlattr *a;
a = __add_action(sfa, attrtype, data, len, log);
- if (IS_ERR(a))
- return PTR_ERR(a);
- return
0
;
+ return
PTR_ERR_OR_ZERO(a)
;
}
static inline int add_nested_action_start(struct sw_flow_actions **sfa,