tipc: simplify trivial boolean return
authorHoang Le <hoang.h.le@dektech.com.au>
Fri, 13 Mar 2020 03:18:02 +0000 (10:18 +0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 15 Mar 2020 07:07:00 +0000 (00:07 -0700)
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/msg.c

index 0d515d20b0568d3c2683ee6143163fada8bc0866..4d0e0bdd997b23c50cebb0b70e0ba97d5bd82854 100644 (file)
@@ -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;
 }