diff options
author | Ying Xue <ying.xue@windriver.com> | 2014-12-02 15:00:29 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-12-08 20:39:57 -0500 |
commit | 834caafa3e61f63805738376fa9c02dc0c1eb224 (patch) | |
tree | 8e2a6ffc763d1570d889ebd81a44704ea78e8c6a /net/tipc/subscr.c | |
parent | 5492390a9495bade807afca61eab860f852e33fa (diff) | |
download | linux-834caafa3e61f63805738376fa9c02dc0c1eb224.tar.bz2 |
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/subscr.c')
-rw-r--r-- | net/tipc/subscr.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/tipc/subscr.c b/net/tipc/subscr.c index 31b5cb232a43..0344206b984f 100644 --- a/net/tipc/subscr.c +++ b/net/tipc/subscr.c @@ -305,7 +305,6 @@ static int subscr_subscribe(struct tipc_subscr *s, kfree(sub); return -EINVAL; } - INIT_LIST_HEAD(&sub->nameseq_list); list_add(&sub->subscription_list, &subscriber->subscription_list); sub->subscriber = subscriber; sub->swap = swap; |