diff options
author | Leon Romanovsky <leonro@mellanox.com> | 2018-05-29 14:14:07 +0200 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2018-06-01 17:20:43 +0200 |
commit | 27d036e33237e49801780eb703ea38dad5449e12 (patch) | |
tree | e37ef9eadbfe83fdba71db280b8a76f63cd780a7 /mm/memory.c | |
parent | RDMA/hns_roce: Don't check return value of zap_vma_ptes() (diff) | |
download | linux-27d036e33237e49801780eb703ea38dad5449e12.tar.xz linux-27d036e33237e49801780eb703ea38dad5449e12.zip |
mm: Remove return value of zap_vma_ptes()
All callers of zap_vma_ptes() are not interested in the return value of
that function, so let's simplify its interface and drop the return
value.
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'mm/memory.c')
-rw-r--r-- | mm/memory.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/mm/memory.c b/mm/memory.c index 01f5464e0fd2..5d8c2afb0730 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -1660,16 +1660,15 @@ static void zap_page_range_single(struct vm_area_struct *vma, unsigned long addr * * The entire address range must be fully contained within the vma. * - * Returns 0 if successful. */ -int zap_vma_ptes(struct vm_area_struct *vma, unsigned long address, +void zap_vma_ptes(struct vm_area_struct *vma, unsigned long address, unsigned long size) { if (address < vma->vm_start || address + size > vma->vm_end || !(vma->vm_flags & VM_PFNMAP)) - return -1; + return; + zap_page_range_single(vma, address, size, NULL); - return 0; } EXPORT_SYMBOL_GPL(zap_vma_ptes); |