1 ext4: remove an unneeded check in mext_page_mkuptodate()
3 From: Dan Carpenter <dan.carpenter@oracle.com>
5 "err" is zero here, there is no need to check again.
7 Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
8 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
10 diff --git a/fs/ext4/move_extent.c b/fs/ext4/move_extent.c
11 index 773b503bd18c..f39a88abe32c 100644
12 --- a/fs/ext4/move_extent.c
13 +++ b/fs/ext4/move_extent.c
14 @@ -861,8 +861,7 @@ mext_page_mkuptodate(struct page *page, unsigned from, unsigned to)
16 if (!buffer_mapped(bh)) {
17 zero_user(page, block_start, blocksize);
19 - set_buffer_uptodate(bh);
20 + set_buffer_uptodate(bh);