kernel: Fix asynchronous event polling interface
Commit 76b3518ce6
("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 <aurelien@aurel32.net>
This commit is contained in:
parent
a9389da038
commit
513cceb5d1
1 changed files with 1 additions and 1 deletions
|
@ -332,7 +332,7 @@ static int signal_poll_event(struct k_poll_event *event, u32_t state)
|
|||
__ASSERT(event->poller->thread != NULL,
|
||||
"poller should have a thread\n");
|
||||
|
||||
event->poller->is_polling = true;
|
||||
event->poller->is_polling = false;
|
||||
|
||||
if (!_is_thread_pending(thread)) {
|
||||
goto ready_event;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue