[patch 2/4] vfs: filp is never NULL in do_generic_file_read()

From: Miklos Szeredi
Date: Wed Jul 30 2008 - 09:10:12 EST


From: Miklos Szeredi <mszeredi@xxxxxxx>

...so remove bogus "if (filp)".

Signed-off-by: Miklos Szeredi <mszeredi@xxxxxxx>
---
mm/filemap.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

Index: linux-2.6/mm/filemap.c
===================================================================
--- linux-2.6.orig/mm/filemap.c 2008-07-30 13:52:36.000000000 +0200
+++ linux-2.6/mm/filemap.c 2008-07-30 13:52:39.000000000 +0200
@@ -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,

--
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/