Skip to content
Snippets Groups Projects
Commit 0b2fbd7a authored by Gregory Nutt's avatar Gregory Nutt
Browse files

Fix a DEBUGASSERTion

parent 89b5ef8d
No related branches found
No related tags found
No related merge requests found
arch @ b2709988
Subproject commit 94705f285e98a1ec5ca66027be01eff2e1189e27
Subproject commit b2709988e66303b69358f7b7a910905a6a7ff888
configs @ fda2b226
Subproject commit e3f37812a9a7595a7ddab1a625ebe857d104beb2
Subproject commit fda2b2266521c5cf312aa37ed3c2cd03a4a5c1db
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment