[ALSA] Use kstrdup
authorTakashi Iwai <tiwai@suse.de>
Thu, 30 Jun 2005 08:54:33 +0000 (10:54 +0200)
committerJaroslav Kysela <perex@suse.cz>
Thu, 28 Jul 2005 10:09:52 +0000 (12:09 +0200)
HDA Codec driver
Use the new kstrdup() function instead of in-house one.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_sigmatel.c

index 01cc58a247c18da11151669df81503a0727184a2..07d06f7c4390fcad2a036f9c4bcb3468870430a4 100644 (file)
@@ -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;