summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorLee Jones <lee.jones@canonical.com>2011-03-24 09:56:19 +0000
committerRobert Marklund <robert.marklund@stericsson.com>2011-05-13 10:39:51 +0200
commit03a5a44040d5e77f868f99081c2bee6794bda811 (patch)
treef2b20005cd41835670d2525d8e9183607c7147b4 /fs
parent41499c3d2588010b0ce2c3631958933c6813f3e3 (diff)
FS: FAT: Fix build warning
Ported from Jonas Aaberg's 2.6.35 GLK commit for the 2.6.38 GLK Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com> Change-Id: I9f86641ad50f050271b30ae2f03906f831ee614d Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/17148 Reviewed-by: Sebastian RASMUSSEN <sebastian.rasmussen@stericsson.com> Signed-off-by: Lee Jones <lee.jones@canonical.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/fat/dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/fat/dir.c b/fs/fat/dir.c
index ee42b9e0b16..aace9be592b 100644
--- a/fs/fat/dir.c
+++ b/fs/fat/dir.c
@@ -1229,7 +1229,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;
+ struct msdos_dir_entry *de = NULL;
int err, free_slots, i, nr_bhs;
loff_t pos, i_pos;