Skip to contentSkip to conversation

ext4: remove an unneeded check in mext_page_mkuptodate()

PATCH Applied Dan Carpenter 2 participants 2 messages Feb 6, 2014 – Feb 12, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ext4: remove an unneeded check in mext_page_mkuptodate()

"err" is zero here, there is no need to check again.

fs/ext4/move_extent.c +1 -2
index 773b503bd18c..f39a88abe32c 100644
@@ -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;
 			}
 		}