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-19 23:23:01 +03:00
committed by Petro Karashchenko
parent 1067b6afc9
commit efc863217b
+1 -1
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 */