From 6c308c6f1220bc8ba4c3aa54510ad852123421e4 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Fri, 3 Nov 2023 11:56:52 -0700 Subject: modules/*: drop til_setup_t.free_func() NULL setup checks Trivial cleanup. These are unnecessary nowadays since til_setup_free() won't invoke the free_func() on a NULL setup, and everything uses til_setup_free() to free a til_setup_t. --- src/modules/checkers/checkers.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/modules/checkers') diff --git a/src/modules/checkers/checkers.c b/src/modules/checkers/checkers.c index 998c5bf..0e11d72 100644 --- a/src/modules/checkers/checkers.c +++ b/src/modules/checkers/checkers.c @@ -515,10 +515,8 @@ static void checkers_setup_free(til_setup_t *setup) { checkers_setup_t *s = (checkers_setup_t *)setup; - if (s) { - til_setup_free(s->fill_module_setup); - free(setup); - } + til_setup_free(s->fill_module_setup); + free(setup); } -- cgit v1.2.3