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 <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>
1 parent b8323de commit e228c5c

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

‎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)