CLEANUP: stick-tables: Remove unneeded double (()) around conditional clause
authorDirkjan Bussink <d.bussink@gmail.com>
Fri, 14 Sep 2018 12:31:22 +0000 (14:31 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 9 Oct 2018 13:09:59 +0000 (15:09 +0200)
In the past this conditional had multiple conditionals which is why the
additional parentheses were needed. The conditional was simplified but
the duplicate parentheses were not cleaned up.

src/stick_table.c

index d2aea6d..a65ceb0 100644 (file)
@@ -2016,7 +2016,7 @@ smp_fetch_sc_tracked(const struct arg *args, struct sample *smp, const char *kw,
        smp->data.u.sint = !!stkctr;
 
        /* release the ref count */
-       if ((stkctr == &tmpstkctr))
+       if (stkctr == &tmpstkctr)
                stktable_release(stkctr->table, stkctr_entry(stkctr));
 
        return 1;