summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/gc.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk.kim@samsung.com>2013-11-28 04:55:13 +0100
committerJaegeuk Kim <jaegeuk.kim@samsung.com>2013-12-23 02:18:04 +0100
commit031fa8cc9ba45c14f440b9cf71d09950fbe5eb9b (patch)
treec379f62d0014fd4371049181e9998e907671dbff /fs/f2fs/gc.c
parentf2fs: bug fix on bit overflow from 32bits to 64bits (diff)
downloadlinux-031fa8cc9ba45c14f440b9cf71d09950fbe5eb9b.tar.xz
linux-031fa8cc9ba45c14f440b9cf71d09950fbe5eb9b.zip
f2fs: remove unnecessary condition checks
This patch removes the unnecessary condition checks on: fs/f2fs/gc.c:667 do_garbage_collect() warn: 'sum_page' isn't an ERR_PTR fs/f2fs/f2fs.h:795 f2fs_put_page() warn: 'page' isn't an ERR_PTR Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs/f2fs/gc.c')
-rw-r--r--fs/f2fs/gc.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/f2fs/gc.c b/fs/f2fs/gc.c
index b7ad1ec7e4cc..5fa54c1ca33b 100644
--- a/fs/f2fs/gc.c
+++ b/fs/f2fs/gc.c
@@ -664,8 +664,6 @@ static void do_garbage_collect(struct f2fs_sb_info *sbi, unsigned int segno,
/* read segment summary of victim */
sum_page = get_sum_page(sbi, segno);
- if (IS_ERR(sum_page))
- return;
blk_start_plug(&plug);