CLEANUP: halog: Remove dead stores

Found using clang's scan-build.
This commit is contained in:
Tim Duesterhus 2021-11-04 21:04:24 +01:00 committed by Willy Tarreau
parent ad3683be36
commit 785b84bb8f
1 changed files with 3 additions and 3 deletions

View File

@ -551,7 +551,8 @@ int convert_date_to_timestamp(const char *field)
d = mo = y = h = m = s = 0; d = mo = y = h = m = s = 0;
e = field; e = field;
c = *(e++); // remove '[' e++; // remove '['
/* day + '/' */ /* day + '/' */
while (1) { while (1) {
c = *(e++) - '0'; c = *(e++) - '0';
@ -1148,13 +1149,12 @@ int main(int argc, char **argv)
/* sort all timers */ /* sort all timers */
for (f = 0; f < 5; f++) { for (f = 0; f < 5; f++) {
struct eb32_node *n; struct eb32_node *n;
int val;
val = 0;
n = eb32_first(&timers[f]); n = eb32_first(&timers[f]);
while (n) { while (n) {
int i; int i;
double d; double d;
int val;
t = container_of(n, struct timer, node); t = container_of(n, struct timer, node);
last = n->key; last = n->key;