mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 22:14:03 +02:00
ASoC: Intel: avs: da7219: Remove redundant DAI link name allocation
avs_create_dai_link() assigns dl->name twice; the first devm_kasprintf() is immediately overwritten by the TDM-aware name. Drop the redundant first assignment. Signed-off-by: Linmao Li <lilinmao@kylinos.cn> Reviewed-by: Cezary Rojewski <cezary.rojewski@intel.com> Link: https://patch.msgid.link/20260723093639.2364360-1-lilinmao@kylinos.cn Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
2bb3727d7b
commit
7859b74c0b
|
|
@ -175,7 +175,6 @@ static int avs_create_dai_link(struct device *dev, int ssp_port, int tdm_slot,
|
|||
if (!dl || !platform)
|
||||
return -ENOMEM;
|
||||
|
||||
dl->name = devm_kasprintf(dev, GFP_KERNEL, "SSP%d-Codec", ssp_port);
|
||||
dl->name = devm_kasprintf(dev, GFP_KERNEL,
|
||||
AVS_STRING_FMT("SSP", "-Codec", ssp_port, tdm_slot));
|
||||
dl->cpus = devm_kzalloc(dev, sizeof(*dl->cpus), GFP_KERNEL);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user