Skip to content

Commit b90a640

Browse files
committed
fixup! ASoC: SOF: Intel: use sof_sdw as default SDW machine driver
fix checkpatch error. Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
1 parent 09c455c commit b90a640

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

sound/soc/sof/intel/hda.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)