au1200fb: io_remap_pfn_range() sets VM_IO
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 11 May 2013 16:37:38 +0000 (12:37 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 29 Jun 2013 08:46:42 +0000 (12:46 +0400)
... and single return is quite sufficient to get out of function, TYVM

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/video/au1200fb.c

index 1b59054fc6a4ccb5b2c2c12ca9ceb6070ed53bd2..301224ecc9507186e78e9cc14576e7a5316b227d 100644 (file)
@@ -1258,13 +1258,9 @@ static int au1200fb_fb_mmap(struct fb_info *info, struct vm_area_struct *vma)
        vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
        pgprot_val(vma->vm_page_prot) |= _CACHE_MASK; /* CCA=7 */
 
-       vma->vm_flags |= VM_IO;
-
        return io_remap_pfn_range(vma, vma->vm_start, off >> PAGE_SHIFT,
                                  vma->vm_end - vma->vm_start,
                                  vma->vm_page_prot);
-
-       return 0;
 }
 
 static void set_global(u_int cmd, struct au1200_lcd_global_regs_t *pdata)