aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorJoern Engel <joern@logfs.org>2009-12-07 06:34:43 -0500
committerJoern Engel <joern@logfs.org>2009-12-07 06:34:43 -0500
commit5c564c2a04d4bb6ba79eeb83bd06de584479f362 (patch)
treecf2d9343cd03e2c77882d0124a924ed11cddb598 /fs
parent30835cd074381048b0ea5d53e27725bbd0bdf5b7 (diff)
[LogFS] Silence gcc
Andrew Morton sayeth: fs/logfs/journal.c: In function 'logfs_init_journal': fs/logfs/journal.c:266: warning: 'last_len' may be used uninitialized in this function Can this be squished please?
Diffstat (limited to 'fs')
-rw-r--r--fs/logfs/journal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/logfs/journal.c b/fs/logfs/journal.c
index 7a023dbba9f8..2f2e8e4fd02d 100644
--- a/fs/logfs/journal.c
+++ b/fs/logfs/journal.c
@@ -263,7 +263,7 @@ static int logfs_read_segment(struct super_block *sb, u32 segno)
263 struct logfs_journal_header *jh = super->s_compressed_je; 263 struct logfs_journal_header *jh = super->s_compressed_je;
264 u64 ofs, seg_ofs = dev_ofs(sb, segno, 0); 264 u64 ofs, seg_ofs = dev_ofs(sb, segno, 0);
265 u32 h_ofs, last_ofs = 0; 265 u32 h_ofs, last_ofs = 0;
266 u16 len, datalen, last_len; 266 u16 len, datalen, last_len = 0;
267 int i, err; 267 int i, err;
268 268
269 /* search for most recent commit */ 269 /* search for most recent commit */