Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 61eee41a authored by David Woodhouse's avatar David Woodhouse Committed by Bjorn Helgaas
Browse files

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: default avatarDavid Woodhouse <dwmw@amazon.co.uk>
Tested-by: default avatarTony Luck <tony.luck@intel.com>
parent 2bea36fd
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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);