diff options
author | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-11-28 12:55:13 +0900 |
---|---|---|
committer | Ziyan <jaraidaniel@gmail.com> | 2015-05-02 14:35:44 +0200 |
commit | 08ed9320834f5ddb69610fceeb6895d8d817dfa1 (patch) | |
tree | b981ed9a030013dd4936da525d0f84982003af11 /fs/f2fs/f2fs.h | |
parent | 8d207bb3cdcf2a831e4cc67e913d7ccc3747a018 (diff) | |
download | kernel_samsung_tuna-08ed9320834f5ddb69610fceeb6895d8d817dfa1.zip kernel_samsung_tuna-08ed9320834f5ddb69610fceeb6895d8d817dfa1.tar.gz kernel_samsung_tuna-08ed9320834f5ddb69610fceeb6895d8d817dfa1.tar.bz2 |
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/f2fs.h')
-rw-r--r-- | fs/f2fs/f2fs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index a149b22..7f8b808 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h @@ -792,7 +792,7 @@ static inline unsigned int valid_inode_count(struct f2fs_sb_info *sbi) static inline void f2fs_put_page(struct page *page, int unlock) { - if (!page || IS_ERR(page)) + if (!page) return; if (unlock) { |