summaryrefslogtreecommitdiff
path: root/src/modules/mixer
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/mixer
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/mixer')
-rw-r--r--src/modules/mixer/mixer.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/modules/mixer/mixer.c b/src/modules/mixer/mixer.c
index d8c1326..cf57d3d 100644
--- a/src/modules/mixer/mixer.c
+++ b/src/modules/mixer/mixer.c
@@ -318,12 +318,10 @@ static void mixer_setup_free(til_setup_t *setup)
{
mixer_setup_t *s = (mixer_setup_t *)setup;
- if (s) {
- for (size_t i = 0; i < nelems(s->inputs); i++)
- til_setup_free(s->inputs[i].setup);
+ for (size_t i = 0; i < nelems(s->inputs); i++)
+ til_setup_free(s->inputs[i].setup);
- free(setup);
- }
+ free(setup);
}
© All Rights Reserved