Skip to content

Commit 04408e1

Browse files
cujomalaineyranj063
authored andcommitted
fixup! ASoC: SOF: ipc4-topology: Add support for base config extension
1 parent eea0b24 commit 04408e1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

sound/soc/sof/ipc4-topology.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -882,10 +882,8 @@ static int sof_ipc4_widget_setup_comp_process(struct snd_sof_widget *swidget)
882882
/* allocate memory for base config extension if needed */
883883
if (process->init_config == SOF_IPC4_MODULE_INIT_CONFIG_TYPE_BASE_CFG_WITH_EXT) {
884884
struct sof_ipc4_base_module_cfg_ext *base_cfg_ext;
885-
u32 ext_size;
886-
887-
ext_size += struct_size(base_cfg_ext, pin_formats,
888-
swidget->num_input_pins + swidget->num_output_pins);
885+
u32 ext_size = struct_size(base_cfg_ext, pin_formats,
886+
swidget->num_input_pins + swidget->num_output_pins);
889887

890888
base_cfg_ext = kzalloc(ext_size, GFP_KERNEL);
891889
if (!base_cfg_ext) {

0 commit comments

Comments
 (0)