File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1178,10 +1178,8 @@ static struct snd_soc_acpi_adr_device *find_acpi_adr_device(struct device *dev,
11781178
11791179 endpoints = devm_kcalloc (dev , codec_info_list [i ].dai_num ,
11801180 sizeof (struct snd_soc_acpi_endpoint ), GFP_KERNEL );
1181- if (!endpoints ) {
1182- dev_err (dev , "failed to allocate memory for endpoints\n" );
1181+ if (!endpoints )
11831182 return NULL ;
1184- }
11851183
11861184 name_prefix = codec_info_list [i ].name_prefix ;
11871185 /*
@@ -1413,7 +1411,8 @@ static struct snd_soc_acpi_mach *hda_sdw_machine_select(struct snd_sof_dev *sdev
14131411 * Set mach->sof_tplg_filename as a dummy topology to avoid tplg file checking
14141412 * and being used.
14151413 */
1416- mach -> sof_tplg_filename = devm_kasprintf (sdev -> dev , GFP_KERNEL , "sof-%s-dummy.tplg" , chip -> platform );
1414+ mach -> sof_tplg_filename = devm_kasprintf (sdev -> dev , GFP_KERNEL ,
1415+ "sof-%s-dummy.tplg" , chip -> platform );
14171416
14181417 dev_info (sdev -> dev , "Use SoundWire default machine driver with function topologies\n" );
14191418 return mach ;
You can’t perform that action at this time.
0 commit comments