提交 82fe0c58 编写于 作者: T Takashi Iwai 提交者: Jaroslav Kysela

[ALSA] Use kstrdup

HDA Codec driver
Use the new kstrdup() function instead of in-house one.
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 08844847
......@@ -540,7 +540,7 @@ static int stac92xx_add_control(struct sigmatel_spec *spec, int type, const char
knew = &spec->kctl_alloc[spec->num_kctl_used];
*knew = stac92xx_control_templates[type];
knew->name = snd_kmalloc_strdup(name, GFP_KERNEL);
knew->name = kstrdup(name, GFP_KERNEL);
if (! knew->name)
return -ENOMEM;
knew->private_value = val;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册