diff options
Diffstat (limited to 'fs/ubifs')
-rw-r--r-- | fs/ubifs/lpt_commit.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/ubifs/lpt_commit.c b/fs/ubifs/lpt_commit.c index 27c97a1873d5..1bead5a6d80a 100644 --- a/fs/ubifs/lpt_commit.c +++ b/fs/ubifs/lpt_commit.c | |||
@@ -421,8 +421,7 @@ static int write_cnodes(struct ubifs_info *c) | |||
421 | err = realloc_lpt_leb(c, &lnum); | 421 | err = realloc_lpt_leb(c, &lnum); |
422 | if (err) | 422 | if (err) |
423 | goto no_space; | 423 | goto no_space; |
424 | offs = 0; | 424 | offs = from = 0; |
425 | from = 0; | ||
426 | ubifs_assert(lnum >= c->lpt_first && | 425 | ubifs_assert(lnum >= c->lpt_first && |
427 | lnum <= c->lpt_last); | 426 | lnum <= c->lpt_last); |
428 | err = ubifs_leb_unmap(c, lnum); | 427 | err = ubifs_leb_unmap(c, lnum); |
@@ -480,7 +479,7 @@ static int write_cnodes(struct ubifs_info *c) | |||
480 | err = realloc_lpt_leb(c, &lnum); | 479 | err = realloc_lpt_leb(c, &lnum); |
481 | if (err) | 480 | if (err) |
482 | goto no_space; | 481 | goto no_space; |
483 | offs = 0; | 482 | offs = from = 0; |
484 | ubifs_assert(lnum >= c->lpt_first && | 483 | ubifs_assert(lnum >= c->lpt_first && |
485 | lnum <= c->lpt_last); | 484 | lnum <= c->lpt_last); |
486 | err = ubifs_leb_unmap(c, lnum); | 485 | err = ubifs_leb_unmap(c, lnum); |
@@ -507,7 +506,7 @@ static int write_cnodes(struct ubifs_info *c) | |||
507 | err = realloc_lpt_leb(c, &lnum); | 506 | err = realloc_lpt_leb(c, &lnum); |
508 | if (err) | 507 | if (err) |
509 | goto no_space; | 508 | goto no_space; |
510 | offs = 0; | 509 | offs = from = 0; |
511 | ubifs_assert(lnum >= c->lpt_first && | 510 | ubifs_assert(lnum >= c->lpt_first && |
512 | lnum <= c->lpt_last); | 511 | lnum <= c->lpt_last); |
513 | err = ubifs_leb_unmap(c, lnum); | 512 | err = ubifs_leb_unmap(c, lnum); |