diff options
author | hujianyang <hujianyang@huawei.com> | 2014-06-10 22:42:52 -0400 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2014-07-19 02:53:51 -0400 |
commit | b793a8c8885d87d9867fb2dbfdc1ef7b5877d71b (patch) | |
tree | 01da1e3301a8a93f1804b0136440b36eee17ec3c /fs/ubifs/lpt_commit.c | |
parent | ce6ebdb87ef94b332fa0bfafd62830bf50e6e2c6 (diff) |
UBIFS: remove useless statements
This patch removes useless and duplicate statements.
Signed-off-by: hujianyang <hujianyang@huawei.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Diffstat (limited to 'fs/ubifs/lpt_commit.c')
-rw-r--r-- | fs/ubifs/lpt_commit.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/ubifs/lpt_commit.c b/fs/ubifs/lpt_commit.c index ff47893ad5fd..d9c02928e992 100644 --- a/fs/ubifs/lpt_commit.c +++ b/fs/ubifs/lpt_commit.c | |||
@@ -304,7 +304,6 @@ static int layout_cnodes(struct ubifs_info *c) | |||
304 | ubifs_assert(lnum >= c->lpt_first && | 304 | ubifs_assert(lnum >= c->lpt_first && |
305 | lnum <= c->lpt_last); | 305 | lnum <= c->lpt_last); |
306 | } | 306 | } |
307 | done_ltab = 1; | ||
308 | c->ltab_lnum = lnum; | 307 | c->ltab_lnum = lnum; |
309 | c->ltab_offs = offs; | 308 | c->ltab_offs = offs; |
310 | offs += c->ltab_sz; | 309 | offs += c->ltab_sz; |
@@ -514,7 +513,6 @@ static int write_cnodes(struct ubifs_info *c) | |||
514 | if (err) | 513 | if (err) |
515 | return err; | 514 | return err; |
516 | } | 515 | } |
517 | done_ltab = 1; | ||
518 | ubifs_pack_ltab(c, buf + offs, c->ltab_cmt); | 516 | ubifs_pack_ltab(c, buf + offs, c->ltab_cmt); |
519 | offs += c->ltab_sz; | 517 | offs += c->ltab_sz; |
520 | dbg_chk_lpt_sz(c, 1, c->ltab_sz); | 518 | dbg_chk_lpt_sz(c, 1, c->ltab_sz); |