From: Kirill Tkhai Date: Fri, 28 Dec 2018 08:37:35 +0000 (-0800) Subject: mm/filemap.c: remove useless check in pagecache_get_page() X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=c16eb000ca03f8cdc2153bca6c977b6f898e6934;p=openwrt%2Fstaging%2Fblogic.git mm/filemap.c: remove useless check in pagecache_get_page() page always is not NULL, so we may remove this useless check. Link: http://lkml.kernel.org/r/154419752044.18559.2452963074922917720.stgit@localhost.localdomain Signed-off-by: Kirill Tkhai Acked-by: Cyrill Gorcunov Reviewed-by: Andrew Morton Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/filemap.c b/mm/filemap.c index d2df272152f5..8cec52968e83 100644 --- a/mm/filemap.c +++ b/mm/filemap.c @@ -1601,7 +1601,7 @@ repeat: VM_BUG_ON_PAGE(page->index != offset, page); } - if (page && (fgp_flags & FGP_ACCESSED)) + if (fgp_flags & FGP_ACCESSED) mark_page_accessed(page); no_page: