mirror of https://github.com/thesofproject/sof.git
codec_adapter: remove unnecessary braces
Remove the unnecessary braces in codec_adapter_set_params(). Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
This commit is contained in:
parent
6aa96e231b
commit
6241f50549
|
@ -528,12 +528,11 @@ static int codec_adapter_set_params(struct comp_dev *dev, struct sof_ipc_ctrl_da
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case MODULE_CFG_SETUP:
|
case MODULE_CFG_SETUP:
|
||||||
ret = load_setup_config(dev, md->runtime_params, size);
|
ret = load_setup_config(dev, md->runtime_params, size);
|
||||||
if (ret) {
|
if (ret)
|
||||||
comp_err(dev, "codec_adapter_set_params(): error %d: load of setup config failed.",
|
comp_err(dev, "codec_adapter_set_params(): error %d: load of setup config failed.",
|
||||||
ret);
|
ret);
|
||||||
} else {
|
else
|
||||||
comp_dbg(dev, "codec_adapter_set_params() load of setup config done.");
|
comp_dbg(dev, "codec_adapter_set_params() load of setup config done.");
|
||||||
}
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case MODULE_CFG_RUNTIME:
|
case MODULE_CFG_RUNTIME:
|
||||||
|
@ -551,12 +550,11 @@ static int codec_adapter_set_params(struct comp_dev *dev, struct sof_ipc_ctrl_da
|
||||||
* config right away.
|
* config right away.
|
||||||
*/
|
*/
|
||||||
ret = module_apply_runtime_config(dev);
|
ret = module_apply_runtime_config(dev);
|
||||||
if (ret) {
|
if (ret)
|
||||||
comp_err(dev, "codec_adapter_set_params() error %x: codec runtime config apply failed",
|
comp_err(dev, "codec_adapter_set_params() error %x: codec runtime config apply failed",
|
||||||
ret);
|
ret);
|
||||||
} else {
|
else
|
||||||
comp_dbg(dev, "codec_adapter_set_params() apply of runtime config done.");
|
comp_dbg(dev, "codec_adapter_set_params() apply of runtime config done.");
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
mod->priv.r_cfg.avail = true;
|
mod->priv.r_cfg.avail = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue