mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 22:02:02 +00:00
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>
This commit is contained in:
parent
cea371f4f3
commit
14bd5b458b
1 changed files with 1 additions and 3 deletions
|
@ -2965,9 +2965,7 @@ int install_special_mapping(struct mm_struct *mm,
|
||||||
struct vm_area_struct *vma = _install_special_mapping(mm,
|
struct vm_area_struct *vma = _install_special_mapping(mm,
|
||||||
addr, len, vm_flags, pages);
|
addr, len, vm_flags, pages);
|
||||||
|
|
||||||
if (IS_ERR(vma))
|
return PTR_ERR_OR_ZERO(vma);
|
||||||
return PTR_ERR(vma);
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static DEFINE_MUTEX(mm_all_locks_mutex);
|
static DEFINE_MUTEX(mm_all_locks_mutex);
|
||||||
|
|
Loading…
Reference in a new issue