aboutsummaryrefslogtreecommitdiffstats
path: root/fs/f2fs
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2013-07-31 04:44:13 -0400
committerJaegeuk Kim <jaegeuk.kim@samsung.com>2013-07-31 06:07:01 -0400
commitf0c5e565bb05a4cd6105bb197c56078462252e78 (patch)
tree6ab2f97266948b51113de889b6c49b3f7e9a37b5 /fs/f2fs
parentcbd56e7d20d7188d62a85aa6986a7b2c8e755ab5 (diff)
f2fs: remove an unneeded kfree(NULL)
This kfree() is no longer needed after a79dc083d7 "f2fs: move bio_private allocation out of f2fs_bio_alloc()". The "bio->bi_private" is NULL here so it's a no-op. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs/f2fs')
-rw-r--r--fs/f2fs/data.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c
index 19cd7c6e964c..027341cacd2b 100644
--- a/fs/f2fs/data.c
+++ b/fs/f2fs/data.c
@@ -390,7 +390,6 @@ int f2fs_readpage(struct f2fs_sb_info *sbi, struct page *page,
390 bio->bi_end_io = read_end_io; 390 bio->bi_end_io = read_end_io;
391 391
392 if (bio_add_page(bio, page, PAGE_CACHE_SIZE, 0) < PAGE_CACHE_SIZE) { 392 if (bio_add_page(bio, page, PAGE_CACHE_SIZE, 0) < PAGE_CACHE_SIZE) {
393 kfree(bio->bi_private);
394 bio_put(bio); 393 bio_put(bio);
395 up_read(&sbi->bio_sem); 394 up_read(&sbi->bio_sem);
396 f2fs_put_page(page, 1); 395 f2fs_put_page(page, 1);