diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-04-06 20:27:03 +0200 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-04-15 17:49:47 +0200 |
commit | 4da7bf5a4345f3ce9699476a8022f66cfb4a8ce9 (patch) | |
tree | 671a99704e055a184a3d009310574faf39175107 /fs/f2fs/data.c | |
parent | f2fs: unset atomic/volatile flag in f2fs_release_file (diff) | |
download | linux-4da7bf5a4345f3ce9699476a8022f66cfb4a8ce9.tar.xz linux-4da7bf5a4345f3ce9699476a8022f66cfb4a8ce9.zip |
f2fs: remove redundant condition check
This patch resolves the redundant condition check reported by David.
Reported-by: David Binderman <dcb314@hotmail.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/data.c')
-rw-r--r-- | fs/f2fs/data.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index 5dafb9cef12e..c29bcf4cfca1 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -1496,7 +1496,7 @@ restart: } else { /* hole case */ err = get_dnode_of_data(&dn, index, LOOKUP_NODE); - if (err || (!err && dn.data_blkaddr == NULL_ADDR)) { + if (err || dn.data_blkaddr == NULL_ADDR) { f2fs_put_dnode(&dn); f2fs_lock_op(sbi); locked = true; |