* [PATCH 2/2] fs/ocfs2: get rid of unnecessary initialization
@ 2007-12-26 3:04 Joonwoo Park
0 siblings, 0 replies; only message in thread
From: Joonwoo Park @ 2007-12-26 3:04 UTC (permalink / raw)
To: linux-kernel; +Cc: mark.fasheh, kurt.hackel
default_groups was allocated with kcalloc, so initialization to NULL is unnecessary.
Signed-off-by: Joonwoo Park <joonwpark81@gmail.com>
---
fs/ocfs2/cluster/nodemanager.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/fs/ocfs2/cluster/nodemanager.c b/fs/ocfs2/cluster/nodemanager.c
index af2070d..113ef6b 100644
--- a/fs/ocfs2/cluster/nodemanager.c
+++ b/fs/ocfs2/cluster/nodemanager.c
@@ -840,7 +840,6 @@ static struct config_group *o2nm_cluster_group_make_group(struct config_group *g
cluster->cl_group.default_groups = defs;
cluster->cl_group.default_groups[0] = &ns->ns_group;
cluster->cl_group.default_groups[1] = o2hb_group;
- cluster->cl_group.default_groups[2] = NULL;
rwlock_init(&cluster->cl_nodes_lock);
cluster->cl_node_ip_tree = RB_ROOT;
cluster->cl_reconnect_delay_ms = O2NET_RECONNECT_DELAY_MS_DEFAULT;
---
Thanks.
Joonwoo
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-12-26 3:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-26 3:04 [PATCH 2/2] fs/ocfs2: get rid of unnecessary initialization Joonwoo Park
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®