diff options
author | Prasanna Karthik <mkarthi3@visteon.com> | 2015-12-08 17:30:25 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2015-12-17 10:29:01 +0000 |
commit | 38fc2f6c98262913388de338d5b0cda67e3f78cd (patch) | |
tree | e28e8585a4b6a6b79cd0ead19ac9b13c02fe13ce /arch/arm/kernel/vdso.c | |
parent | b563d0645123802448f9e8bf868c8bae552207ff (diff) | |
download | linux-stable-38fc2f6c98262913388de338d5b0cda67e3f78cd.tar.gz linux-stable-38fc2f6c98262913388de338d5b0cda67e3f78cd.tar.bz2 linux-stable-38fc2f6c98262913388de338d5b0cda67e3f78cd.zip |
ARM: 8476/1: VDSO: use PTR_ERR_OR_ZERO for vma check
Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR
Signed-off-by: Prasanna Karthik <mkarthi3@visteon.com>
Signed-off-by: Nathan Lynch <nathan_lynch@mentor.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/kernel/vdso.c')
-rw-r--r-- | arch/arm/kernel/vdso.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/kernel/vdso.c b/arch/arm/kernel/vdso.c index 54a5aeab988d..994e971a8538 100644 --- a/arch/arm/kernel/vdso.c +++ b/arch/arm/kernel/vdso.c @@ -224,7 +224,7 @@ static int install_vvar(struct mm_struct *mm, unsigned long addr) VM_READ | VM_MAYREAD, &vdso_data_mapping); - return IS_ERR(vma) ? PTR_ERR(vma) : 0; + return PTR_ERR_OR_ZERO(vma); } /* assumes mmap_sem is write-locked */ |