Skip to contentSkip to conversation

Minor touch to filemap.c

PATCH New Momchil Velikov 1 participant 1 message Dec 21, 2001

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

PATCH 1/1 Minor touch to filemap.c

As Linus pointed out, we've just checked that page is NULL.

mm/filemap.c +0 -1
@@ -941,7 +941,6 @@
 	spin_unlock(&pagecache_lock);
 	if (!page) {
 		struct page *newpage = alloc_page(gfp_mask);
-		page = NULL;
 		if (newpage) {
 			spin_lock(&pagecache_lock);
 			page = __find_lock_page_helper(mapping, index, *hash);