ia64: Remove redundant valid_mmap_phys_addr_range() from pci_mmap_page_range()
authorDavid Woodhouse <dwmw@amazon.co.uk>
Fri, 7 Apr 2017 09:22:42 +0000 (11:22 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 20 Apr 2017 13:47:47 +0000 (08:47 -0500)
We know we are within a valid MMIO BAR by the time this function gets
called; there's no need to check.

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Tested-by: Tony Luck <tony.luck@intel.com>
arch/ia64/pci/pci.c

index 053c688b15a585a51e6dedd6aa8cae0187b8e787..27020f30caa6e6809e34af5a1b3dc61195bf344f 100644 (file)
@@ -439,9 +439,6 @@ pci_mmap_page_range (struct pci_dev *dev, int bar,
                 */
                return -EINVAL;
 
-       if (!valid_mmap_phys_addr_range(vma->vm_pgoff, size))
-               return -EINVAL;
-
        prot = phys_mem_access_prot(NULL, vma->vm_pgoff, size,
                                    vma->vm_page_prot);