summaryrefslogtreecommitdiffstats
path: root/net/tipc
diff options
context:
space:
mode:
authorHoang Le <hoang.h.le@dektech.com.au>2020-03-13 10:18:02 +0700
committerDavid S. Miller <davem@davemloft.net>2020-03-15 00:07:00 -0700
commite228c5c0882e809e4fb3eafd07ec25ff50f65ac5 (patch)
tree4fd46d76e143035a428742e29dfd999b6bb288fd /net/tipc
parentb8323deb6322dbd58acbcd29c6a0ff16c302bb42 (diff)
downloadlinux-e228c5c0882e809e4fb3eafd07ec25ff50f65ac5.tar.bz2
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/tipc')
-rw-r--r--net/tipc/msg.c3
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;
}