diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-01-20 08:27:37 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-02-22 16:07:23 -0800 |
commit | b483fadf7e913be838e11e065175205aa17e429a (patch) | |
tree | 5bff9246f469692d5ab661bb8f78e80977dfbdb1 /fs/f2fs | |
parent | 0ab143563198055bd45bbb511bb41f5968fdd8bd (diff) | |
download | linux-b483fadf7e913be838e11e065175205aa17e429a.tar.bz2 |
f2fs: remove needless condition check
This patch removes needless condition variable.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs')
-rw-r--r-- | fs/f2fs/data.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index 7fff6ac3d0cb..e8d4158a3206 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -1477,13 +1477,9 @@ restart: if (f2fs_lookup_extent_cache(inode, index, &ei)) { dn.data_blkaddr = ei.blk + index - ei.fofs; } else { - bool restart = false; - /* hole case */ err = get_dnode_of_data(&dn, index, LOOKUP_NODE); - if (err || (!err && dn.data_blkaddr == NULL_ADDR)) - restart = true; - if (restart) { + if (err || (!err && dn.data_blkaddr == NULL_ADDR)) { f2fs_put_dnode(&dn); f2fs_lock_op(sbi); locked = true; |