From: David Woodhouse Date: Fri, 7 Apr 2017 09:22:42 +0000 (+0200) Subject: ia64: Remove redundant valid_mmap_phys_addr_range() from pci_mmap_page_range() X-Git-Tag: microblaze-4.13-rc1~143^2~2^2~2 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=61eee41ae135517392d05cbf1177523a02f12727;p=linux-2.6-microblaze.git ia64: Remove redundant valid_mmap_phys_addr_range() from pci_mmap_page_range() 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 Tested-by: Tony Luck --- diff --git a/arch/ia64/pci/pci.c b/arch/ia64/pci/pci.c index 053c688b15a5..27020f30caa6 100644 --- a/arch/ia64/pci/pci.c +++ b/arch/ia64/pci/pci.c @@ -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);