Skip to content

Commit e228c5c

Browse files
Hoang Ledavem330
authored andcommitted
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]>
1 parent b8323de commit e228c5c

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

net/tipc/msg.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -736,9 +736,6 @@ bool tipc_msg_lookup_dest(struct net *net, struct sk_buff *skb, int *err)
736736
msg_set_destport(msg, dport);
737737
*err = TIPC_OK;
738738

739-
if (!skb_cloned(skb))
740-
return true;
741-
742739
return true;
743740
}
744741

0 commit comments

Comments
 (0)