From: Duan Jiong Date: Wed, 4 Jun 2014 23:07:05 +0000 (-0700) Subject: mm/mmap.c: replace IS_ERR and PTR_ERR with PTR_ERR_OR_ZERO X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=14bd5b458bf62f84b2639ae288fd83d1da7a9af6;p=linux-beck.git 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 Acked-by: Rik van Riel Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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, struct vm_area_struct *vma = _install_special_mapping(mm, addr, len, vm_flags, pages); - if (IS_ERR(vma)) - return PTR_ERR(vma); - return 0; + return PTR_ERR_OR_ZERO(vma); } static DEFINE_MUTEX(mm_all_locks_mutex);