1
0
Fork 0

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>
hifive-unleashed-5.1
David Woodhouse 2017-04-07 11:22:42 +02:00 committed by Bjorn Helgaas
parent 2bea36fd1a
commit 61eee41ae1
1 changed files with 0 additions and 3 deletions

View 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);