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: Ying Xue's avatarYing Xue <>
Reviewed-by: default avatarErik Hugne <>
Reviewed-by: default avatarJon Maloy <>
Signed-off-by: default avatarDavid S. Miller <>
parent 1dbe1369
......@@ -95,12 +95,6 @@ struct tipc_node *tipc_node_create(u32 addr)
n_ptr = tipc_node_find(addr);
if (n_ptr) {
return n_ptr;
n_ptr = kzalloc(sizeof(*n_ptr), GFP_ATOMIC);
if (!n_ptr) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment