lkml.org 
[lkml]   [2017]   [Apr]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v2 23/27] ia64: Remove redundant valid_mmap_phys_addr_range() from pci_mmap_page_range()
Date
From: David Woodhouse <dwmw@amazon.co.uk>

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>
---
arch/ia64/pci/pci.c | 3 ---
1 file changed, 3 deletions(-)

diff --git a/arch/ia64/pci/pci.c b/arch/ia64/pci/pci.c
index 053c688..27020f3 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);

--
2.9.3
\
 
 \ /
  Last update: 2017-04-12 14:29    [W:0.148 / U:1.328 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site