From: deraadt Date: Sat, 15 May 2021 13:56:56 +0000 (+0000) Subject: improve comment regarding child_return() clearing errno-indicating flag X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=b4741b160b9bfd682871f4342b4b3ad9e35a7046;p=openbsd improve comment regarding child_return() clearing errno-indicating flag --- diff --git a/sys/arch/riscv64/riscv64/syscall.c b/sys/arch/riscv64/riscv64/syscall.c index 61d1e2d9d63..584726da5b9 100644 --- a/sys/arch/riscv64/riscv64/syscall.c +++ b/sys/arch/riscv64/riscv64/syscall.c @@ -1,4 +1,4 @@ -/* $OpenBSD: syscall.c,v 1.6 2021/05/14 06:48:52 jsg Exp $ */ +/* $OpenBSD: syscall.c,v 1.7 2021/05/15 13:56:56 deraadt Exp $ */ /* * Copyright (c) 2020 Brian Bamsch @@ -125,8 +125,7 @@ child_return(arg) frame->tf_a[0] = 0; frame->tf_a[1] = 1; - // XXX How to signal error? - frame->tf_t[0] = 0; + frame->tf_t[0] = 0; /* no error */ KERNEL_UNLOCK();