From 8d1eea225a37956fca58b463b93ffc125a8a01c7 Mon Sep 17 00:00:00 2001 From: Shriram Shastry Date: Thu, 30 May 2024 18:34:41 +0530 Subject: [PATCH] Audio: Simplify multiband_drc_setup return logic Replaces intermediate variable and redundant comments with a direct call to return multiband_drc_init_coef function. Signed-off-by: Shriram Shastry --- src/audio/multiband_drc/multiband_drc.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/audio/multiband_drc/multiband_drc.c b/src/audio/multiband_drc/multiband_drc.c index e10b63d28d9a..b812ec9409a9 100644 --- a/src/audio/multiband_drc/multiband_drc.c +++ b/src/audio/multiband_drc/multiband_drc.c @@ -198,17 +198,12 @@ static int multiband_drc_init_coef(struct processing_module *mod, int16_t nch, u static int multiband_drc_setup(struct processing_module *mod, int16_t channels, uint32_t rate) { struct multiband_drc_comp_data *cd = module_get_private_data(mod); - int ret; /* Reset any previous state */ multiband_drc_reset_state(&cd->state); /* Setup Crossover, Emphasis EQ, Deemphasis EQ, and DRC */ - ret = multiband_drc_init_coef(mod, channels, rate); - if (ret < 0) - return ret; - - return 0; + return multiband_drc_init_coef(mod, channels, rate); } /*