aboutsummaryrefslogtreecommitdiff
path: root/common/tcb.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/tcb.c')
-rw-r--r--common/tcb.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/common/tcb.c b/common/tcb.c
index f774fbc..201b15e 100644
--- a/common/tcb.c
+++ b/common/tcb.c
@@ -344,11 +344,8 @@ stat_t clone_rpc_maps(struct tcb *r)
{
hard_assert(r && is_proc(r), ERR_INVAL);
struct tcb *t = r;
- while ((t = t->rpc.next)) {
- stat_t ret = clone_uvmem(r->proc.vmem, t->rpc.vmem);
- if (ret)
- return ret;
- }
+ while ((t = t->rpc.next))
+ clone_uvmem(r->proc.vmem, t->rpc.vmem);
return OK;
}
@@ -357,11 +354,8 @@ stat_t clone_proc_maps(struct tcb *r)
{
hard_assert(r && is_proc(r), ERR_INVAL);
struct tcb *t = r;
- while ((t = t->proc.next)) {
- stat_t ret = clone_uvmem(r->proc.vmem, t->proc.vmem);
- if (ret)
- return ret;
- }
+ while ((t = t->proc.next))
+ clone_uvmem(r->proc.vmem, t->proc.vmem);
return OK;
}