]> git.webhop.me Git - lcd4linux.git/commitdiff
timer.c: removed fruitless changes to variable "flag" from timer_process()
authormzuther <mzuther@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>
Thu, 4 Feb 2010 13:48:59 +0000 (13:48 +0000)
committermzuther <mzuther@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>
Thu, 4 Feb 2010 13:48:59 +0000 (13:48 +0000)
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1101 3ae390bd-cb1e-0410-b409-cd5a39f66f1f

timer.c

diff --git a/timer.c b/timer.c
index 3bb504df70a1e980422e9163b677d534d1cc397a..174e1e39bd2e7ba7d11865f077e1be5f3c1dfd3d 100644 (file)
--- a/timer.c
+++ b/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);