]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
ocfs2: remove unnecessary INIT_LIST_HEAD()
authorYang Yingliang <yangyingliang@huawei.com>
Tue, 29 Jun 2021 02:33:58 +0000 (19:33 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 29 Jun 2021 17:53:46 +0000 (10:53 -0700)
The list_head o2hb_node_events is initialized statically.  It is
unnecessary to initialize by INIT_LIST_HEAD().

Link: https://lkml.kernel.org/r/20210511115847.3817395-1-yangyingliang@huawei.com
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Reported-by: Hulk Robot <hulkci@huawei.com>
Cc: Mark Fasheh <mark@fasheh.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Junxiao Bi <junxiao.bi@oracle.com>
Cc: Joseph Qi <jiangqi903@gmail.com>
Cc: Changwei Ge <gechangwei@live.cn>
Cc: Gang He <ghe@suse.com>
Cc: Jun Piao <piaojun@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ocfs2/cluster/heartbeat.c

index e829c25955438a1f8ed8db310efe723795de68df..1169c8dc9106c50b680e8df4467c4204f0e5cfa5 100644 (file)
@@ -1442,8 +1442,6 @@ void o2hb_init(void)
        for (i = 0; i < ARRAY_SIZE(o2hb_live_slots); i++)
                INIT_LIST_HEAD(&o2hb_live_slots[i]);
 
-       INIT_LIST_HEAD(&o2hb_node_events);
-
        memset(o2hb_live_node_bitmap, 0, sizeof(o2hb_live_node_bitmap));
        memset(o2hb_region_bitmap, 0, sizeof(o2hb_region_bitmap));
        memset(o2hb_live_region_bitmap, 0, sizeof(o2hb_live_region_bitmap));