]> git.ipfire.org Git - thirdparty/openvpn.git/commit
fragment.c: simplify boolean expression
authorAntonio Quartulli <a@unstable.cc>
Thu, 24 Aug 2017 07:55:47 +0000 (15:55 +0800)
committerDavid Sommerseth <davids@openvpn.net>
Wed, 6 Sep 2017 21:52:21 +0000 (23:52 +0200)
commit10ae9ed5fe7f09c7edb5af266149a9b5e9bcbaa4
tree20360d13bc86fb7d479809cf1891919369c4d264
parented0e79938e801ec656d70cf02bcea4cdd0b79532
fragment.c: simplify boolean expression

!A || (A && B) is equivalent to the simpler !A || B
therefore it is preferable to use the second version as
it is simpler to parse while reading the code.

Signed-off-by: Antonio Quartulli <a@unstable.cc>
Acked-by: David Sommerseth <davids@openvpn.net>
Message-Id: <20170824075547.29844-1-a@unstable.cc>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg15313.html
Signed-off-by: David Sommerseth <davids@openvpn.net>
src/openvpn/fragment.c