Skip to content

Commit 5c564c2

Browse files
author
Joern Engel
committed
[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?
1 parent 30835cd commit 5c564c2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎fs/logfs/journal.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ static int logfs_read_segment(struct super_block *sb, u32 segno)
263263
struct logfs_journal_header *jh = super->s_compressed_je;
264264
u64 ofs, seg_ofs = dev_ofs(sb, segno, 0);
265265
u32 h_ofs, last_ofs = 0;
266-
u16 len, datalen, last_len;
266+
u16 len, datalen, last_len = 0;
267267
int i, err;
268268

269269
/* search for most recent commit */

0 commit comments

Comments
 (0)