diff mbox series

[net-next,1/2] tipc: simplify trivial boolean return

Message ID 20200313031803.9588-1-hoang.h.le@dektech.com.au
State New
Headers show
Series [net-next,1/2] tipc: simplify trivial boolean return | expand

Commit Message

Hoang Le March 13, 2020, 3:18 a.m. UTC
From: Hoang Le <hoang.h.le@dektech.com.au>

Checking and returning 'true' boolean is useless as it will be
returning at end of function

Signed-off-by: Hoang Le <hoang.h.le@dektech.com.au>
Acked-by: Ying Xue <ying.xue@windriver.com>
Acked-by: Jon Maloy <jmaloy@redhat.com>
---
 net/tipc/msg.c | 3 ---
 1 file changed, 3 deletions(-)
diff mbox series

Patch

diff --git a/net/tipc/msg.c b/net/tipc/msg.c
index 0d515d20b056..4d0e0bdd997b 100644
--- a/net/tipc/msg.c
+++ b/net/tipc/msg.c
@@ -736,9 +736,6 @@  bool tipc_msg_lookup_dest(struct net *net, struct sk_buff *skb, int *err)
 	msg_set_destport(msg, dport);
 	*err = TIPC_OK;
 
-	if (!skb_cloned(skb))
-		return true;
-
 	return true;
 }