mirror of
https://github.com/apache/nuttx.git
synced 2026-09-23 07:14:28 +08:00
Fix a DEBUGASSERTion
This commit is contained in:
+1
-1
Submodule arch updated: 94705f285e...b2709988e6
+1
-1
Submodule configs updated: e3f37812a9...fda2b22665
@@ -115,18 +115,18 @@ WDOG_ID wd_create (void)
|
||||
|
||||
/* Did we get one? */
|
||||
|
||||
if (wdog)
|
||||
if (wdog != NULL)
|
||||
{
|
||||
/* Yes.. decrement the count of free, pre-allocated timers (all
|
||||
* with interrupts disabled).
|
||||
*/
|
||||
|
||||
DEBUGASSERT(g_wdnfree > 0 && wdog != NULL);
|
||||
DEBUGASSERT(g_wdnfree > 0);
|
||||
g_wdnfree--;
|
||||
|
||||
/* Clear the forward link and all flags */
|
||||
|
||||
wdog->next = NULL;
|
||||
wdog->next = NULL;
|
||||
wdog->flags = 0;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user