Commit 5c564c2a04d4bb6ba79eeb83bd06de584479f362

Authored by Joern Engel
1 parent 30835cd074

[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?

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -263,7 +263,7 @@
263 263 struct logfs_journal_header *jh = super->s_compressed_je;
264 264 u64 ofs, seg_ofs = dev_ofs(sb, segno, 0);
265 265 u32 h_ofs, last_ofs = 0;
266   - u16 len, datalen, last_len;
  266 + u16 len, datalen, last_len = 0;
267 267 int i, err;
268 268  
269 269 /* search for most recent commit */