Commit df3a98b0 authored by Dan Carpenter's avatar Dan Carpenter Committed by Theodore Ts'o

ext4: remove an unneeded check in mext_page_mkuptodate()

"err" is zero here, there is no need to check again.
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
parent d8558a29
...@@ -861,7 +861,6 @@ mext_page_mkuptodate(struct page *page, unsigned from, unsigned to) ...@@ -861,7 +861,6 @@ mext_page_mkuptodate(struct page *page, unsigned from, unsigned to)
} }
if (!buffer_mapped(bh)) { if (!buffer_mapped(bh)) {
zero_user(page, block_start, blocksize); zero_user(page, block_start, blocksize);
if (!err)
set_buffer_uptodate(bh); set_buffer_uptodate(bh);
continue; continue;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment