提交 61eee41a 编写于 作者: D David Woodhouse 提交者: Bjorn Helgaas

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: NDavid Woodhouse <dwmw@amazon.co.uk>
Tested-by: NTony Luck <tony.luck@intel.com>
上级 2bea36fd
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册