[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200313031803.9588-1-hoang.h.le@dektech.com.au>
Date: Fri, 13 Mar 2020 10:18:02 +0700
From: hoang.h.le@...tech.com.au
To: ying.xue@...driver.com, netdev@...r.kernel.org
Cc: jmaloy@...hat.com, maloy@...jonn.com,
Hoang Le <hoang.h.le@...tech.com.au>
Subject: [net-next 1/2] tipc: simplify trivial boolean return
From: Hoang Le <hoang.h.le@...tech.com.au>
Checking and returning 'true' boolean is useless as it will be
returning at end of function
Signed-off-by: Hoang Le <hoang.h.le@...tech.com.au>
Acked-by: Ying Xue <ying.xue@...driver.com>
Acked-by: Jon Maloy <jmaloy@...hat.com>
---
net/tipc/msg.c | 3 ---
1 file changed, 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;
}
--
2.20.1
Powered by blists - more mailing lists