Skip to content

Commit

Permalink
[LogFS] Silence gcc
Browse files Browse the repository at this point in the history
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?
  • Loading branch information
Joern Engel committed Dec 7, 2009
1 parent 30835cd commit 5c564c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/logfs/journal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 5c564c2

Please sign in to comment.