From fe0a8a39945035597f9c23a55bfc1c4ae8ae27fb Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Thu, 2 Mar 2017 17:35:13 +0000 Subject: [PATCH] Style. Reviewed by: alc Sponsored by: The FreeBSD Foundation MFC after: 3 days --- sys/kern/imgact_elf.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/kern/imgact_elf.c b/sys/kern/imgact_elf.c index c01ab36cb5db..29c1f4939d52 100644 --- a/sys/kern/imgact_elf.c +++ b/sys/kern/imgact_elf.c @@ -413,9 +413,8 @@ __elfN(map_partial)(vm_map_t map, vm_object_t object, vm_ooffset_t offset, error = copyout((caddr_t)sf_buf_kva(sf) + off, (caddr_t)start, end - start); vm_imgact_unmap_page(sf); - if (error) { + if (error != 0) return (KERN_FAILURE); - } } return (KERN_SUCCESS);