BUILD: plock: remove dead code that causes a warning in gcc 11
authorWilly Tarreau <w@1wt.eu>
Mon, 21 Dec 2020 09:27:18 +0000 (10:27 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 6 Jan 2021 13:41:01 +0000 (14:41 +0100)
commit775c665f20c695ad92fdb4318d5c77097ba15d7a
tree418cc701b1f2ad7d20fc94178f386e0617e3e51b
parent361e90eb459f9e9418c93c3cc2da5d6bc02c159d
BUILD: plock: remove dead code that causes a warning in gcc 11

As Ilya reported in issue #998, gcc 11 complains about misleading code
indentation which is in fact caused by dead assignments to zero after
a loop which stops on zero. Let's clean both of these.

(cherry picked from commit b1f54925fc17b00ddbe25e30c2207a8d68d47f34)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
include/import/plock.h