Netdev List
 help / color / mirror / Atom feed
* [PATCH 1/1 net-next] openvswitch: use PTR_ERR_OR_ZERO
@ 2014-11-14 18:32 Fabian Frederick
  2014-11-14 20:34 ` Pravin Shelar
       [not found] ` <1415989978-28559-1-git-send-email-fabf-AgBVmzD5pcezQB+pC5nmwQ@public.gmane.org>
  0 siblings, 2 replies; 3+ messages in thread
From: Fabian Frederick @ 2014-11-14 18:32 UTC (permalink / raw)
  To: linux-kernel
  Cc: Fabian Frederick, Pravin Shelar, David S. Miller, dev, netdev

Signed-off-by: Fabian Frederick <fabf@skynet.be>
---
 net/openvswitch/flow_netlink.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/net/openvswitch/flow_netlink.c b/net/openvswitch/flow_netlink.c
index c0d066d..c8fccdd 100644
--- 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,
-- 
1.9.3

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-11-16 19:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-14 18:32 [PATCH 1/1 net-next] openvswitch: use PTR_ERR_OR_ZERO Fabian Frederick
2014-11-14 20:34 ` Pravin Shelar
     [not found] ` <1415989978-28559-1-git-send-email-fabf-AgBVmzD5pcezQB+pC5nmwQ@public.gmane.org>
2014-11-16 19:43   ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox