summaryrefslogtreecommitdiff
path: root/net/tipc/name_table.c
diff options
context:
space:
mode:
authorYing Xue <ying.xue@windriver.com>2014-12-02 10:00:29 +0300
committerDavid S. Miller <davem@davemloft.net>2014-12-09 04:39:57 +0300
commit834caafa3e61f63805738376fa9c02dc0c1eb224 (patch)
tree8e2a6ffc763d1570d889ebd81a44704ea78e8c6a /net/tipc/name_table.c
parent5492390a9495bade807afca61eab860f852e33fa (diff)
downloadlinux-834caafa3e61f63805738376fa9c02dc0c1eb224.tar.xz
tipc: remove unnecessary INIT_LIST_HEAD
When a list_head variable is seen as a new entry to be added to a list head, it's unnecessary to be initialized with INIT_LIST_HEAD(). Signed-off-by: Ying Xue <ying.xue@windriver.com> Reviewed-by: Erik Hugne <erik.hugne@ericsson.com> Reviewed-by: Jon Maloy <jon.maloy@ericsson.com> Tested-by: Erik Hugne <erik.hugne@ericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/name_table.c')
-rw-r--r--net/tipc/name_table.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/tipc/name_table.c b/net/tipc/name_table.c
index bc3e7ed80000..3c2e0c300fe2 100644
--- a/net/tipc/name_table.c
+++ b/net/tipc/name_table.c
@@ -131,9 +131,7 @@ static struct publication *publ_create(u32 type, u32 lower, u32 upper,
publ->node = node;
publ->ref = port_ref;
publ->key = key;
- INIT_LIST_HEAD(&publ->local_list);
INIT_LIST_HEAD(&publ->pport_list);
- INIT_LIST_HEAD(&publ->nodesub_list);
return publ;
}