mirror of
https://github.com/netfun2000/lcd4linux.git
synced 2026-02-27 09:44:34 +08:00
timer.c: removed fruitless changes to variable "flag" from timer_process()
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1101 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
This commit is contained in:
2
timer.c
2
timer.c
@@ -170,12 +170,10 @@ int timer_process(struct timespec *delay)
|
||||
}
|
||||
|
||||
/* process expired timers */
|
||||
flag = 0;
|
||||
for (i = 0; i < nTimers; i++) {
|
||||
if (Timers[i].active == 0)
|
||||
continue;
|
||||
if (!timercmp(&Timers[i].when, &now, >)) {
|
||||
flag = 1;
|
||||
/* callback */
|
||||
if (Timers[i].callback != NULL) {
|
||||
Timers[i].callback(Timers[i].data);
|
||||
|
||||
Reference in New Issue
Block a user