[ALSA] Use kstrdup
HDA Codec driver Use the new kstrdup() function instead of in-house one. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
committed by
Jaroslav Kysela
parent
0884484762
commit
82fe0c5803
@@ -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 = &spec->kctl_alloc[spec->num_kctl_used];
|
||||||
*knew = stac92xx_control_templates[type];
|
*knew = stac92xx_control_templates[type];
|
||||||
knew->name = snd_kmalloc_strdup(name, GFP_KERNEL);
|
knew->name = kstrdup(name, GFP_KERNEL);
|
||||||
if (! knew->name)
|
if (! knew->name)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
knew->private_value = val;
|
knew->private_value = val;
|
||||||
|
Reference in New Issue
Block a user