From: Joern Engel Date: Mon, 7 Dec 2009 11:34:43 +0000 (+0100) Subject: [LogFS] Silence gcc X-Git-Tag: upstream/snapshot3+hdmi~15326^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5c564c2a04d4bb6ba79eeb83bd06de584479f362;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git [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? --- diff --git a/fs/logfs/journal.c b/fs/logfs/journal.c index 7a023db..2f2e8e4 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) struct logfs_journal_header *jh = super->s_compressed_je; u64 ofs, seg_ofs = dev_ofs(sb, segno, 0); u32 h_ofs, last_ofs = 0; - u16 len, datalen, last_len; + u16 len, datalen, last_len = 0; int i, err; /* search for most recent commit */