aboutsummaryrefslogtreecommitdiffstats
path: root/mm/mmap.c
diff options
context:
space:
mode:
authorDuan Jiong <duanj.fnst@cn.fujitsu.com>2014-06-04 19:07:05 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-06-04 19:53:58 -0400
commit14bd5b458bf62f84b2639ae288fd83d1da7a9af6 (patch)
tree08920aea1db2e261919601830313f45d9c3ae6d3 /mm/mmap.c
parentcea371f4f39ced101d27264eddb8cf8c749fdd00 (diff)
mm/mmap.c: replace IS_ERR and PTR_ERR with PTR_ERR_OR_ZERO
Fix a coccinelle error regarding usage of IS_ERR and PTR_ERR instead of PTR_ERR_OR_ZERO. Signed-off-by: Duan Jiong <duanj.fnst@cn.fujitsu.com> Acked-by: Rik van Riel <riel@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/mmap.c')
-rw-r--r--mm/mmap.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/mm/mmap.c b/mm/mmap.c
index b1202cf81f4b..6cdec3a6f4bf 100644
--- a/mm/mmap.c
+++ b/mm/mmap.c
@@ -2965,9 +2965,7 @@ int install_special_mapping(struct mm_struct *mm,
2965 struct vm_area_struct *vma = _install_special_mapping(mm, 2965 struct vm_area_struct *vma = _install_special_mapping(mm,
2966 addr, len, vm_flags, pages); 2966 addr, len, vm_flags, pages);
2967 2967
2968 if (IS_ERR(vma)) 2968 return PTR_ERR_OR_ZERO(vma);
2969 return PTR_ERR(vma);
2970 return 0;
2971} 2969}
2972 2970
2973static DEFINE_MUTEX(mm_all_locks_mutex); 2971static DEFINE_MUTEX(mm_all_locks_mutex);