Fix error: converting the result of '<<' to a boolean always evaluates to true

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-05-15 12:59:18 +08:00 committed by Petro Karashchenko
parent 1067b6afc9
commit efc863217b

View file

@ -463,7 +463,7 @@ static void sporadic_budget_expire(wdparm_t arg)
if (nxsched_islocked_tcb(tcb))
{
DEBUGASSERT((mrepl->flags && SPORADIC_FLAG_ALLOCED) != 0);
DEBUGASSERT((mrepl->flags & SPORADIC_FLAG_ALLOCED) != 0);
/* Set the timeslice to the magic value */