sched/wqueue/kwork_notifier.c: Fix broken assertion introduced in recent commit. Breaks non-error path. Suggested by Jussi Kivilinna in Butbucket commit comment.
This commit is contained in:
parent
2f18326c09
commit
40b74d1f1c
@ -1,7 +1,7 @@
|
||||
/****************************************************************************
|
||||
* sched/wqueue/kwork_notifier.c
|
||||
*
|
||||
* Copyright (C) 2018 Gregory Nutt. All rights reserved.
|
||||
* Copyright (C) 2018-2019 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@ -313,7 +313,7 @@ void work_notifier_signal(enum work_evtype_e evtype,
|
||||
do
|
||||
{
|
||||
ret = nxsem_wait(&g_notifier_sem);
|
||||
DEBUGASSERT(ret == -EINTR || ret == -ECANCELED);
|
||||
DEBUGASSERT(ret >= 0 || ret == -EINTR || ret == -ECANCELED);
|
||||
}
|
||||
while (ret < 0);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user