]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: net_helper: Do not negate the result of unlikely
authorTim Duesterhus <tim@bastelstu.be>
Fri, 21 Feb 2020 12:02:04 +0000 (13:02 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 25 Feb 2020 06:30:49 +0000 (07:30 +0100)
commit1d48ba91d7f8e7d7c1908305ac124830dd414292
tree3c4831f002dd0a09ad7eb52402ee78c8936c3ff4
parent927063b8920c275ad6599b4cafc7b8742f5cc626
CLEANUP: net_helper: Do not negate the result of unlikely

This patch turns the double negation of 'not unlikely' into 'likely'
and then turns the negation of 'not smaller' into 'greater or equal'
in an attempt to improve readability of the condition.

[wt: this was not a bug but purposely written like this to improve code
 generation on older compilers but not needed anymore as described here:
 https://www.mail-archive.com/haproxy@formilux.org/msg36392.html ]
include/common/net_helper.h