This is an automated email from the ASF dual-hosted git repository.

pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit efc863217bc93c930af2b108d4825ce1d7d30df9
Author: Xiang Xiao <xiaoxi...@xiaomi.com>
AuthorDate: Sun May 15 12:59:18 2022 +0800

    Fix error: converting the result of '<<' to a boolean always evaluates to 
true
    
    Signed-off-by: Xiang Xiao <xiaoxi...@xiaomi.com>
---
 sched/sched/sched_sporadic.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sched/sched/sched_sporadic.c b/sched/sched/sched_sporadic.c
index b6c179263b..df4d976127 100644
--- a/sched/sched/sched_sporadic.c
+++ b/sched/sched/sched_sporadic.c
@@ -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 */
 

Reply via email to