From 0c6aa2639ea83bfb7f91d72118bad70b3f60012a Mon Sep 17 00:00:00 2001 From: Krishna Kumar Date: Wed, 15 Oct 2008 22:01:13 -0700 Subject: [PATCH] mm: do_generic_file_read() never gets a NULL 'filp' argument The 'filp' argument to do_generic_file_read() is never NULL. Signed-off-by: Krishna Kumar Reviewed-by: KOSAKI Motohiro Cc: Christoph Hellwig Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- mm/filemap.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mm/filemap.c b/mm/filemap.c index 876bc595d0f..bf8f9c0c7a8 100644 --- a/mm/filemap.c +++ b/mm/filemap.c @@ -1186,8 +1186,7 @@ out: ra->prev_pos |= prev_offset; *ppos = ((loff_t)index << PAGE_CACHE_SHIFT) + offset; - if (filp) - file_accessed(filp); + file_accessed(filp); } int file_read_actor(read_descriptor_t *desc, struct page *page, -- 2.41.1