[PATCH 05/06] uio: Remove redundant vma->vm_flags setup code

From: Magnus Damm
Date: Fri Jul 18 2008 - 01:05:41 EST


From: Magnus Damm <damm@xxxxxxxxxx>

Remove redundant VM_IO | VM_RESERVED setup code since remap_pfn_range()
already sets them for us.

Signed-off-by: Magnus Damm <damm@xxxxxxxxxx>
---

drivers/uio/uio.c | 1 -
1 file changed, 1 deletion(-)

--- 0005/drivers/uio/uio.c
+++ work/drivers/uio/uio.c 2008-07-18 12:44:42.000000000 +0900
@@ -474,7 +474,6 @@ static struct vm_operations_struct uio_v

static int uio_mmap_physical(struct vm_area_struct *vma, struct uio_mem *imem)
{
- vma->vm_flags |= VM_IO | VM_RESERVED;
vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
return remap_pfn_range(vma,
vma->vm_start,
--
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/