Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 76d78824 authored by Ying Xue's avatar Ying Xue Committed by David S. Miller
Browse files

tipc: remove unnecessary checking for node object



tipc_node_create routine doesn't need to check whether a node
object specified with a node address exists or not because its
caller(ie, tipc_disc_recv_msg routine) has checked this before
calling it.

Signed-off-by: default avatarYing Xue <ying.xue@windriver.com>
Reviewed-by: default avatarErik Hugne <erik.hugne@ericsson.com>
Reviewed-by: default avatarJon Maloy <jon.maloy@ericsson.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1dbe1369
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -95,12 +95,6 @@ struct tipc_node *tipc_node_create(u32 addr)

	spin_lock_bh(&node_create_lock);

	n_ptr = tipc_node_find(addr);
	if (n_ptr) {
		spin_unlock_bh(&node_create_lock);
		return n_ptr;
	}

	n_ptr = kzalloc(sizeof(*n_ptr), GFP_ATOMIC);
	if (!n_ptr) {
		spin_unlock_bh(&node_create_lock);