Skip to content

Commit

Permalink
ocfs2: explicit declare uninitialized var in user_cluster_connect()
Browse files Browse the repository at this point in the history
This patch explicitly declares an uninitialized local variable in user_cluster_connect(), to remove a compiling warning.

Signed-off-by: Coly Li <coly.li@suse.de>
Signed-off-by: Joel Becker <joel.becker@oracle.com>
  • Loading branch information
Coly Li authored and Joel Becker committed Dec 18, 2009
1 parent f5befbb commit 3a05d79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ocfs2/stack_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 *uninitialized_var(control);
int rc = 0;

BUG_ON(conn == NULL);
Expand Down

0 comments on commit 3a05d79

Please sign in to comment.