We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eea0b24 commit 04408e1Copy full SHA for 04408e1
sound/soc/sof/ipc4-topology.c
@@ -882,10 +882,8 @@ static int sof_ipc4_widget_setup_comp_process(struct snd_sof_widget *swidget)
882
/* allocate memory for base config extension if needed */
883
if (process->init_config == SOF_IPC4_MODULE_INIT_CONFIG_TYPE_BASE_CFG_WITH_EXT) {
884
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);
+ u32 ext_size = struct_size(base_cfg_ext, pin_formats,
+ swidget->num_input_pins + swidget->num_output_pins);
889
890
base_cfg_ext = kzalloc(ext_size, GFP_KERNEL);
891
if (!base_cfg_ext) {
0 commit comments