Skip to content

Commit 513cceb

Browse files
aurel32nashif
authored andcommitted
kernel: Fix asynchronous event polling interface
Commit 76b3518 ("kernel: Make statements evaluate boolean expressions") changed the type of is_polling in the struct _poller from int to bool. In the conversion a "0" has been changed into "true" instead of "false". Fix that. Signed-off-by: Aurelien Jarno <[email protected]>
1 parent a9389da commit 513cceb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/poll.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ static int signal_poll_event(struct k_poll_event *event, u32_t state)
332332
__ASSERT(event->poller->thread != NULL,
333333
"poller should have a thread\n");
334334

335-
event->poller->is_polling = true;
335+
event->poller->is_polling = false;
336336

337337
if (!_is_thread_pending(thread)) {
338338
goto ready_event;

0 commit comments

Comments
 (0)