diff options
author | Takashi Iwai <tiwai@suse.de> | 2005-06-30 10:54:33 +0200 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2005-07-28 12:09:52 +0200 |
commit | 82fe0c5803f4c77ffeb4c1c2367defb3dcedad45 (patch) | |
tree | 4d1f474788c16403fa75c7831940e034ae12df10 | |
parent | [ALSA] Fix dependency of GUS driver (diff) | |
download | linux-82fe0c5803f4c77ffeb4c1c2367defb3dcedad45.tar.xz linux-82fe0c5803f4c77ffeb4c1c2367defb3dcedad45.zip |
[ALSA] Use kstrdup
HDA Codec driver
Use the new kstrdup() function instead of in-house one.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r-- | sound/pci/hda/patch_sigmatel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c index 01cc58a247c1..07d06f7c4390 100644 --- a/sound/pci/hda/patch_sigmatel.c +++ b/sound/pci/hda/patch_sigmatel.c @@ -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; |