summaryrefslogtreecommitdiff
path: root/src/modules/rtv
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2023-05-30 14:12:23 -0700
committerVito Caputo <vcaputo@pengaru.com>2023-05-30 14:12:23 -0700
commit3b43a50c3582f8f9bcd914ac886a94502b868657 (patch)
tree5981801a600a944f3c8ffa61f14831effe6e4f98 /src/modules/rtv
parentc94e4683956a09de468174ff37951abf7822d5a3 (diff)
modules/*: utilize til_module_setup_finalize()
This replaces the few ad-hoc til_module_t.setup() setup-baking callers with the new til_module_setup_finalize() which always produces a til_setup_t having an appropriate path, even when there is no til_module_t.setup() method.
Diffstat (limited to 'src/modules/rtv')
-rw-r--r--src/modules/rtv/rtv.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/modules/rtv/rtv.c b/src/modules/rtv/rtv.c
index 389a0f5..a2bc3c9 100644
--- a/src/modules/rtv/rtv.c
+++ b/src/modules/rtv/rtv.c
@@ -560,14 +560,12 @@ static int rtv_setup(const til_settings_t *settings, til_setting_t **res_setting
return -ENOMEM;
}
- if (snow_module->setup) {
- /* bake the snow_module settings */
- r = snow_module->setup(snow_module_settings, res_setting, res_desc, &setup->snow_module_setup);
- if (r < 0) {
- til_setup_free(&setup->til_setup);
+ /* bake the snow_module settings */
+ r = til_module_setup_finalize(snow_module, snow_module_settings, &setup->snow_module_setup);
+ if (r < 0) {
+ til_setup_free(&setup->til_setup);
- return r;
- }
+ return r;
}
}
© All Rights Reserved