Skip to content

Commit 8d1eea2

Browse files
ShriramShastrycujomalainey
authored andcommitted
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 <malladi.sastry@intel.com>
1 parent e138709 commit 8d1eea2

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/audio/multiband_drc/multiband_drc.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -198,17 +198,12 @@ static int multiband_drc_init_coef(struct processing_module *mod, int16_t nch, u
198198
static int multiband_drc_setup(struct processing_module *mod, int16_t channels, uint32_t rate)
199199
{
200200
struct multiband_drc_comp_data *cd = module_get_private_data(mod);
201-
int ret;
202201

203202
/* Reset any previous state */
204203
multiband_drc_reset_state(&cd->state);
205204

206205
/* Setup Crossover, Emphasis EQ, Deemphasis EQ, and DRC */
207-
ret = multiband_drc_init_coef(mod, channels, rate);
208-
if (ret < 0)
209-
return ret;
210-
211-
return 0;
206+
return multiband_drc_init_coef(mod, channels, rate);
212207
}
213208

214209
/*

0 commit comments

Comments
 (0)