projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2bea36f
)
ia64: Remove redundant valid_mmap_phys_addr_range() from pci_mmap_page_range()
author
David Woodhouse
<dwmw@amazon.co.uk>
Fri, 7 Apr 2017 09:22:42 +0000
(11:22 +0200)
committer
Bjorn Helgaas
<bhelgaas@google.com>
Thu, 20 Apr 2017 13:47:47 +0000
(08:47 -0500)
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>
arch/ia64/pci/pci.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/ia64/pci/pci.c
b/arch/ia64/pci/pci.c
index 053c688b15a585a51e6dedd6aa8cae0187b8e787..27020f30caa6e6809e34af5a1b3dc61195bf344f 100644
(file)
--- 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);