From: Dan Carpenter Date: Tue, 18 Feb 2014 01:46:40 +0000 (-0500) Subject: ext4: remove an unneeded check in mext_page_mkuptodate() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=df3a98b0865467ae8033c55ebb514debd69b4e59;p=linux-beck.git ext4: remove an unneeded check in mext_page_mkuptodate() "err" is zero here, there is no need to check again. Signed-off-by: Dan Carpenter Signed-off-by: "Theodore Ts'o" --- diff --git a/fs/ext4/move_extent.c b/fs/ext4/move_extent.c index 773b503bd18c..f39a88abe32c 100644 --- a/fs/ext4/move_extent.c +++ b/fs/ext4/move_extent.c @@ -861,8 +861,7 @@ mext_page_mkuptodate(struct page *page, unsigned from, unsigned to) } if (!buffer_mapped(bh)) { zero_user(page, block_start, blocksize); - if (!err) - set_buffer_uptodate(bh); + set_buffer_uptodate(bh); continue; } }