]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: task: remove unneeded tests before task_destroy()
authorWilly Tarreau <w@1wt.eu>
Tue, 7 May 2019 17:05:35 +0000 (19:05 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 7 May 2019 17:08:16 +0000 (19:08 +0200)
commitf656279347ec0901e06329c14729d264ddf6ea39
tree396c3fa16db66fc300a9f914594b52f54baa6d58
parent75bc6d3e59a42fae5e5f197186e72ff587fc4ad3
CLEANUP: task: remove unneeded tests before task_destroy()

Since previous commit it's not needed anymore to test a task pointer
before calling task_destory() so let's just remove these tests from
the various callers before they become confusing. The function's
arguments were also documented. The same should probably be done
with tasklet_free() which involves a test in roughly half of the
call places.
include/proto/task.h
src/checks.c
src/flt_spoe.c
src/haproxy.c
src/mux_h1.c
src/mux_h2.c
src/session.c