Skip to content

Commit

Permalink
tipc: simplify trivial boolean return
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Hoang Le authored and davem330 committed Mar 15, 2020
1 parent b8323de commit e228c5c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions net/tipc/msg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit e228c5c

Please sign in to comment.