aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/msg.c
diff options
context:
space:
mode:
authorHoang Le <[email protected]>2020-03-13 03:18:02 +0000
committerDavid S. Miller <[email protected]>2020-03-15 07:07:00 +0000
commite228c5c0882e809e4fb3eafd07ec25ff50f65ac5 (patch)
tree4fd46d76e143035a428742e29dfd999b6bb288fd /net/tipc/msg.c
parentMerge branch 'ethtool-consolidate-irq-coalescing-part-5' (diff)
downloadkernel-e228c5c0882e809e4fb3eafd07ec25ff50f65ac5.tar.gz
kernel-e228c5c0882e809e4fb3eafd07ec25ff50f65ac5.zip
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 <[email protected]> Acked-by: Ying Xue <[email protected]> Acked-by: Jon Maloy <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/tipc/msg.c')
-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;
}