From e600d9f695647cde906058872ef630f683679219 Mon Sep 17 00:00:00 2001 From: Jonas Aaberg Date: Wed, 8 Jun 2011 13:26:48 +0200 Subject: FS: FAT: Mark unitialized variable Remove a compile warning ST-Ericsson Linux next: Not tested, ask SSM for ER ST-Ericsson ID: - ST-Ericsson FOSS-OUT ID: Trivial Signed-off-by: Jonas Aaberg Change-Id: I16f53b75062ad0ed18e4f0ed128353a3a77d555d Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/24636 Reviewed-by: QATEST Reviewed-by: Linus WALLEIJ Tested-by: Linus WALLEIJ --- fs/fat/dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fs') diff --git a/fs/fat/dir.c b/fs/fat/dir.c index d08e558c8eb..5efbd5d7701 100644 --- a/fs/fat/dir.c +++ b/fs/fat/dir.c @@ -1231,7 +1231,7 @@ int fat_add_entries(struct inode *dir, void *slots, int nr_slots, struct super_block *sb = dir->i_sb; struct msdos_sb_info *sbi = MSDOS_SB(sb); struct buffer_head *bh, *prev, *bhs[3]; /* 32*slots (672bytes) */ - struct msdos_dir_entry *de = NULL; + struct msdos_dir_entry *uninitialized_var(de); int err, free_slots, i, nr_bhs; loff_t pos, i_pos; -- cgit v1.2.3