The parent variable was not used outside the assert. This leads to a
warning when asserts are disabled. This commit fixes the warning
be removing the variable.
Signed-off-by: Marc Rittinghaus <marc.rittinghaus@unikraft.io>
Reviewed-by: Marco Schlumpp <marco@unikraft.io>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #739
/** Iterates over registered thread termination functions */
static int _uk_thread_call_termtab(struct uk_thread *child)
{
- struct uk_thread *parent = uk_thread_current();
struct uk_thread_inittab_entry *itr;
struct _inittab_call_term_args term_args;
int ret = 0;
/* Either we run without scheduling or we have support for ectx */
- UK_ASSERT(!parent || parent->flags & UK_THREADF_ECTX);
+ UK_ASSERT(!uk_thread_current() ||
+ uk_thread_current()->flags & UK_THREADF_ECTX);
/* Go over thread termination functions that match with
* child's ECTX and UKTLS feature requirements