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

Signed-off-by: Hoang Le <[email protected]>
---
 net/tipc/msg.c | 3 ---
 1 file changed, 3 deletions(-)

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;
 }
 
-- 
2.20.1



_______________________________________________
tipc-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tipc-discussion

Reply via email to