summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw@amazon.co.uk>2017-04-07 11:22:42 +0200
committerBjorn Helgaas <bhelgaas@google.com>2017-04-20 08:47:47 -0500
commit61eee41ae135517392d05cbf1177523a02f12727 (patch)
tree76e346d05f86c5e8060031e466367909881a422b
parent2bea36fd1af440e1853e431459a0bf929266cd52 (diff)
downloadtalos-obmc-linux-61eee41ae135517392d05cbf1177523a02f12727.tar.gz
talos-obmc-linux-61eee41ae135517392d05cbf1177523a02f12727.zip
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 <dwmw@amazon.co.uk> Tested-by: Tony Luck <tony.luck@intel.com>
-rw-r--r--arch/ia64/pci/pci.c3
1 files changed, 0 insertions, 3 deletions
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);
OpenPOWER on IntegriCloud