summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2017-03-05 00:37:23 +0000
committerkib <kib@FreeBSD.org>2017-03-05 00:37:23 +0000
commit7045202452c45346b886763c29a8bd9a0e9c5594 (patch)
tree2249bb935dc42aa5e9dc861922a33411407ab2ce
parent437cffabbe9b24302427eb1124be7f61e2765639 (diff)
downloadFreeBSD-src-7045202452c45346b886763c29a8bd9a0e9c5594.zip
FreeBSD-src-7045202452c45346b886763c29a8bd9a0e9c5594.tar.gz
MFC r314562:
Style.
-rw-r--r--sys/kern/imgact_elf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/imgact_elf.c b/sys/kern/imgact_elf.c
index bdf709f..7f98522 100644
--- a/sys/kern/imgact_elf.c
+++ b/sys/kern/imgact_elf.c
@@ -399,9 +399,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);
OpenPOWER on IntegriCloud