mirror of
https://github.com/apache/nuttx.git
synced 2026-06-08 10:32:47 +08:00
sched/timer: remove unused variable
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
committed by
hartmannathan
parent
fbf05db906
commit
fa761a8a6a
@@ -98,7 +98,6 @@ static inline void timer_restart(FAR struct posix_timer_s *timer,
|
||||
|
||||
if (timer->pt_delay)
|
||||
{
|
||||
timer->pt_last = timer->pt_delay;
|
||||
wd_start(&timer->pt_wdog, timer->pt_delay, timer_timeout, itimer);
|
||||
}
|
||||
}
|
||||
@@ -313,13 +312,7 @@ int timer_settime(timer_t timerid, int flags,
|
||||
|
||||
if (delay > 0)
|
||||
{
|
||||
/* REVISIT: Should pt_last be sclock_t? Should wd_start delay be
|
||||
* sclock_t?
|
||||
*/
|
||||
|
||||
timer->pt_last = delay;
|
||||
ret = wd_start(&timer->pt_wdog, delay,
|
||||
timer_timeout, (wdparm_t)timer);
|
||||
ret = wd_start(&timer->pt_wdog, delay, timer_timeout, (wdparm_t)timer);
|
||||
if (ret < 0)
|
||||
{
|
||||
set_errno(-ret);
|
||||
|
||||
Reference in New Issue
Block a user