You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
1014 B

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