[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1257317057.14838.57.camel@linux-k65f.site>
Date: Wed, 04 Nov 2009 12:14:17 +0530
From: askb <askb23@...il.com>
To: mfasheh@...e.com, joel.becker@...cle.com,
linux-kernel@...r.kernel.org, kernel-janitors@...r.kernel.org
Subject: [PATCH] fs/ocfs2/stack_user.c - Fixing Compiler warning (PS ignore
my formatting in previous email)
Found the following compile warning on linux-next:
fs/ocfs2/stack_user.c: In function ‘user_cluster_connect’:
fs/ocfs2/stack_user.c:817: warning: ‘control’ may be used uninitialized
in this function
fix for the above warning:
Signed-off-by: Anil SB <askb23@...il.com>
diff --git a/fs/ocfs2/stack_user.c b/fs/ocfs2/stack_user.c
index ff4c798..858ef6f 100644
--- a/fs/ocfs2/stack_user.c
+++ b/fs/ocfs2/stack_user.c
@@ -814,7 +814,7 @@ static int fs_protocol_compare(struct ocfs2_protocol_version *existing,
static int user_cluster_connect(struct ocfs2_cluster_connection *conn)
{
dlm_lockspace_t *fsdlm;
- struct ocfs2_live_connection *control;
+ struct ocfs2_live_connection *control = NULL;
int rc = 0;
BUG_ON(conn == NULL);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists