瀏覽代碼

f2fs: set raw_super default to NULL to avoid compile warning

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>
Gu Zheng 10 年之前
父節點
當前提交
1730663cb7
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      fs/f2fs/super.c

+ 1 - 1
fs/f2fs/super.c

@@ -930,7 +930,7 @@ retry:
 static int f2fs_fill_super(struct super_block *sb, void *data, int silent)
 static int f2fs_fill_super(struct super_block *sb, void *data, int silent)
 {
 {
 	struct f2fs_sb_info *sbi;
 	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 buffer_head *raw_super_buf;
 	struct inode *root;
 	struct inode *root;
 	long err = -EINVAL;
 	long err = -EINVAL;