mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
sched/wdog: Don't dynamically allocate wdog_s
to save the preserved space(1KB) and also avoid the heap overhead Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> Change-Id: I694073f68e1bd63960cedeea1ddec441437be025
This commit is contained in:
@@ -119,11 +119,9 @@ int timer_release(FAR struct posix_timer_s *timer)
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* Free the underlying watchdog instance (the timer will be canceled by the
|
||||
* watchdog logic before it is actually deleted)
|
||||
*/
|
||||
/* Cancel the underlying watchdog instance */
|
||||
|
||||
wd_delete(timer->pt_wdog);
|
||||
wd_cancel(&timer->pt_wdog);
|
||||
|
||||
/* Cancel any pending notification */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user