diff options
author | Hoang Le <hoang.h.le@dektech.com.au> | 2020-03-13 10:18:02 +0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-03-15 00:07:00 -0700 |
commit | e228c5c0882e809e4fb3eafd07ec25ff50f65ac5 (patch) | |
tree | 4fd46d76e143035a428742e29dfd999b6bb288fd /net | |
parent | b8323deb6322dbd58acbcd29c6a0ff16c302bb42 (diff) |
tipc: simplify trivial boolean return
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>
Diffstat (limited to 'net')
-rw-r--r-- | net/tipc/msg.c | 3 |
1 files changed, 0 insertions, 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; } |