LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH 1/2] [RESENDING] fs/dlm: get rid of unnecessary initialization
@ 2008-02-11  9:08 Joonwoo Park
  2008-02-11  9:08 ` [PATCH 2/2] [RESENDING] fs/ocfs2: " Joonwoo Park
  0 siblings, 1 reply; 6+ messages in thread
From: Joonwoo Park @ 2008-02-11  9:08 UTC (permalink / raw)
  To: akpm; +Cc: Joonwoo Park, linux-kernel, pcaulfie, teigland

default_groups was allocated with kcalloc, so initialize to NULL
is unnecessary.

Signed-off-by: Joonwoo Park <joonwpark81@gmail.com>
---
 fs/dlm/config.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/fs/dlm/config.c b/fs/dlm/config.c
index c3ad1df..2b96428 100644
--- a/fs/dlm/config.c
+++ b/fs/dlm/config.c
@@ -414,7 +414,6 @@ static struct config_group *make_cluster(struct config_group *g,
 	cl->group.default_groups = gps;
 	cl->group.default_groups[0] = &sps->ss_group;
 	cl->group.default_groups[1] = &cms->cs_group;
-	cl->group.default_groups[2] = NULL;
 
 	cl->cl_tcp_port = dlm_config.ci_tcp_port;
 	cl->cl_buffer_size = dlm_config.ci_buffer_size;
@@ -483,7 +482,6 @@ static struct config_group *make_space(struct config_group *g, const char *name)
 
 	sp->group.default_groups = gps;
 	sp->group.default_groups[0] = &nds->ns_group;
-	sp->group.default_groups[1] = NULL;
 
 	INIT_LIST_HEAD(&sp->members);
 	mutex_init(&sp->members_lock);
-- 
1.5.3.rc5


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-02-18 22:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-11  9:08 [PATCH 1/2] [RESENDING] fs/dlm: get rid of unnecessary initialization Joonwoo Park
2008-02-11  9:08 ` [PATCH 2/2] [RESENDING] fs/ocfs2: " Joonwoo Park
2008-02-11  9:08   ` [PATCH] [RESENDING] netconsole: register cmdline netconsole configs to configfs Joonwoo Park
2008-02-11 16:30     ` Matt Mackall
2008-02-18 19:30   ` [PATCH 2/2] [RESENDING] fs/ocfs2: get rid of unnecessary initialization Mark Fasheh
2008-02-18 22:16     ` David Teigland

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).