mm: do_generic_file_read() never gets a NULL 'filp' argument
[linux-2.6.git] / mm / filemap.c
index 876bc59..bf8f9c0 100644 (file)
@@ -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,