audio: volume: Remove state check

The state check is redundant as the state will always be >=
MODULE_INITIALIZED if the module exists.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
This commit is contained in:
Ranjani Sridharan 2023-07-09 10:11:15 -07:00 committed by Liam Girdwood
parent 5f6f22d25e
commit d0b7d2fc5d
1 changed files with 1 additions and 3 deletions

View File

@ -1056,7 +1056,6 @@ static int volume_set_config(struct processing_module *mod, uint32_t config_id,
const uint8_t *fragment, size_t fragment_size, uint8_t *response,
size_t response_size)
{
struct module_data *md = &mod->priv;
struct comp_dev *dev = mod->dev;
int ret;
@ -1070,8 +1069,7 @@ static int volume_set_config(struct processing_module *mod, uint32_t config_id,
return ret;
/* return if more fragments are expected or if the module is not prepared */
if ((pos != MODULE_CFG_FRAGMENT_LAST && pos != MODULE_CFG_FRAGMENT_SINGLE) ||
md->state < MODULE_INITIALIZED)
if (pos != MODULE_CFG_FRAGMENT_LAST && pos != MODULE_CFG_FRAGMENT_SINGLE)
return 0;
switch (config_id) {