summaryrefslogtreecommitdiff
path: root/src/modules/asc
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2023-11-03 11:56:52 -0700
committerVito Caputo <vcaputo@pengaru.com>2023-11-03 11:56:52 -0700
commit6c308c6f1220bc8ba4c3aa54510ad852123421e4 (patch)
tree2f849f90e2873ea2b2a8bf8a4a476823df91b7d4 /src/modules/asc
parentd9f0a3edace7eac5679a5bb33f18ff176cf7f877 (diff)
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.
Diffstat (limited to 'src/modules/asc')
-rw-r--r--src/modules/asc/asc.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/modules/asc/asc.c b/src/modules/asc/asc.c
index e359e62..50f81b3 100644
--- a/src/modules/asc/asc.c
+++ b/src/modules/asc/asc.c
@@ -167,10 +167,8 @@ static void asc_setup_free(til_setup_t *setup)
{
asc_setup_t *s = (asc_setup_t *)setup;
- if (s) {
- free((void *)s->string);
- free(s);
- }
+ free((void *)s->string);
+ free(s);
}
© All Rights Reserved