f2fs: set raw_super default to NULL to avoid compile warning
authorGu Zheng <guz.fnst@cn.fujitsu.com>
Mon, 20 Oct 2014 09:45:53 +0000 (17:45 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 4 Nov 2014 00:07:36 +0000 (16:07 -0800)
Set raw_super default to NULL to avoid the possibly used
uninitialized warning, though we may never hit it in fact.

Signed-off-by: Gu Zheng <guz.fnst@cn.fujitsu.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/super.c

index 73993a9..6c5fc76 100644 (file)
@@ -930,7 +930,7 @@ retry:
 static int f2fs_fill_super(struct super_block *sb, void *data, int silent)
 {
        struct f2fs_sb_info *sbi;
-       struct f2fs_super_block *raw_super;
+       struct f2fs_super_block *raw_super = NULL;
        struct buffer_head *raw_super_buf;
        struct inode *root;
        long err = -EINVAL;