projects
/
haproxy-2.1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c26c72d
)
CLEANUP: stick-tables: Remove unneeded double (()) around conditional clause
author
Dirkjan Bussink
<d.bussink@gmail.com>
Fri, 14 Sep 2018 12:31:22 +0000
(14:31 +0200)
committer
Willy 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
patch
|
blob
|
history
diff --git
a/src/stick_table.c
b/src/stick_table.c
index
d2aea6d
..
a65ceb0
100644
(file)
--- a/
src/stick_table.c
+++ b/
src/stick_table.c
@@
-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;