acassis commented on code in PR #17272:
URL: https://github.com/apache/nuttx/pull/17272#discussion_r2486285034


##########
sched/event/event_post.c:
##########
@@ -133,11 +133,11 @@ int nxevent_post(FAR nxevent_t *event, nxevent_mask_t 
events,
               break;
             }
         }
+    }
 
-      if (clear)
-        {
-          event->events &= ~clear;
-        }
+  if (clear)

Review Comment:
   ```suggestion
     if (clear != 0)



##########
sched/event/event_post.c:
##########
@@ -133,11 +133,11 @@ int nxevent_post(FAR nxevent_t *event, nxevent_mask_t 
events,
               break;
             }
         }
+    }
 
-      if (clear)
-        {
-          event->events &= ~clear;
-        }
+  if (clear)

Review Comment:
   Since clear is not boolean



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to