aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorJoel Becker <joel.becker@oracle.com>2010-05-03 22:15:49 -0400
committerJoel Becker <joel.becker@oracle.com>2010-05-03 22:15:49 -0400
commitd577632e65ea01fb3b124b652d7bd2381251da3c (patch)
tree64a567b77fb5163572375f457ea7eeedecf60f30 /fs
parent6b933c8e6f1a2f3118082c455eef25f9b1ac7b45 (diff)
ocfs2: Avoid a gcc warning in ocfs2_wipe_inode().
gcc warns that a variable is uninitialized. It's actually handled, but an early return fools gcc. Let's just initialize the variable to a garbage value that will crash if the usage is ever broken. Signed-off-by: Joel Becker <joel.becker@oracle.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/ocfs2/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ocfs2/inode.c b/fs/ocfs2/inode.c
index 83fe1d38f5cb..af189887201c 100644
--- a/fs/ocfs2/inode.c
+++ b/fs/ocfs2/inode.c
@@ -725,7 +725,7 @@ static void ocfs2_signal_wipe_completion(struct ocfs2_super *osb,
725static int ocfs2_wipe_inode(struct inode *inode, 725static int ocfs2_wipe_inode(struct inode *inode,
726 struct buffer_head *di_bh) 726 struct buffer_head *di_bh)
727{ 727{
728 int status, orphaned_slot; 728 int status, orphaned_slot = -1;
729 struct inode *orphan_dir_inode = NULL; 729 struct inode *orphan_dir_inode = NULL;
730 struct buffer_head *orphan_dir_bh = NULL; 730 struct buffer_head *orphan_dir_bh = NULL;
731 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); 731 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb);