Remove unnecessary list_remove in ctimer.c (list_add automatically removes first)
This commit is contained in:
parent
6ca95ebc0c
commit
239207c8c6
@ -111,7 +111,6 @@ ctimer_set(struct ctimer *c, clock_time_t t,
|
||||
c->etimer.timer.interval = t;
|
||||
}
|
||||
|
||||
list_remove(ctimer_list, c);
|
||||
list_add(ctimer_list, c);
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
@ -124,7 +123,6 @@ ctimer_reset(struct ctimer *c)
|
||||
PROCESS_CONTEXT_END(&ctimer_process);
|
||||
}
|
||||
|
||||
list_remove(ctimer_list, c);
|
||||
list_add(ctimer_list, c);
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
@ -137,7 +135,6 @@ ctimer_restart(struct ctimer *c)
|
||||
PROCESS_CONTEXT_END(&ctimer_process);
|
||||
}
|
||||
|
||||
list_remove(ctimer_list, c);
|
||||
list_add(ctimer_list, c);
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
Loading…
Reference in New Issue
Block a user