a1c1c5c8676f9e870fa36056da54b3c8bdf1aaf6
[openwrt-packages.git] /
1 commit b884ba5222a765b395e8ac93971639a0452d6422
2 Author: Dirkjan Bussink <d.bussink@gmail.com>
3 Date:   Fri Sep 14 14:31:22 2018 +0200
4
5     CLEANUP: stick-tables: Remove unneeded double (()) around conditional clause
6     
7     In the past this conditional had multiple conditionals which is why the
8     additional parentheses were needed. The conditional was simplified but
9     the duplicate parentheses were not cleaned up.
10     
11     (cherry picked from commit ff57f1bbcf8af1e6389520aa845df5aa97ef55b6)
12     [wt: fixes build warnings with clang]
13     Signed-off-by: Willy Tarreau <w@1wt.eu>
14
15 diff --git a/src/stick_table.c b/src/stick_table.c
16 index 653a1ffb..f1442603 100644
17 --- a/src/stick_table.c
18 +++ b/src/stick_table.c
19 @@ -1860,7 +1860,7 @@ smp_fetch_sc_tracked(const struct arg *args, struct sample *smp, const char *kw,
20         smp->data.u.sint = !!stkctr;
21  
22         /* release the ref count */
23 -       if ((stkctr == &tmpstkctr))
24 +       if (stkctr == &tmpstkctr)
25                 stktable_release(stkctr->table, stkctr_entry(stkctr));
26  
27         return 1;
git clone https://git.99rst.org/PROJECT