From 5187a37d8cb999f7a464cb9b112c9ea926dc1fd7 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Wed, 7 Jun 2023 21:41:07 +0300 Subject: add unlikely hint to leave_rpc --- common/uapi/ipc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/uapi/ipc.c') diff --git a/common/uapi/ipc.c b/common/uapi/ipc.c index 1596169..36f2941 100644 --- a/common/uapi/ipc.c +++ b/common/uapi/ipc.c @@ -157,7 +157,7 @@ static void leave_rpc(struct tcb *t, struct sys_ret a) { /* if we're not in an rpc, the user messed something up. */ /** @todo choose or come up with more fitting error value. */ - if (!is_rpc(t)) + if (unlikely(!is_rpc(t))) return_args(t, SYS_RET1(ERR_MISC)); vm_t rpc_stack = t->rpc_stack + BASE_PAGE_SIZE; -- cgit v1.3