diff options
-rw-r--r-- | sound/pci/ice1712/juli.c | 8 | ||||
-rw-r--r-- | sound/pci/ice1712/quartet.c | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/sound/pci/ice1712/juli.c b/sound/pci/ice1712/juli.c index 0dbaccf61f33..21806bab4757 100644 --- a/sound/pci/ice1712/juli.c +++ b/sound/pci/ice1712/juli.c | |||
@@ -27,6 +27,7 @@ | |||
27 | #include <linux/interrupt.h> | 27 | #include <linux/interrupt.h> |
28 | #include <linux/init.h> | 28 | #include <linux/init.h> |
29 | #include <linux/slab.h> | 29 | #include <linux/slab.h> |
30 | #include <linux/string.h> | ||
30 | #include <sound/core.h> | 31 | #include <sound/core.h> |
31 | #include <sound/tlv.h> | 32 | #include <sound/tlv.h> |
32 | 33 | ||
@@ -425,10 +426,9 @@ DECLARE_TLV_DB_SCALE(juli_master_db_scale, -6350, 50, 1); | |||
425 | static struct snd_kcontrol *ctl_find(struct snd_card *card, | 426 | static struct snd_kcontrol *ctl_find(struct snd_card *card, |
426 | const char *name) | 427 | const char *name) |
427 | { | 428 | { |
428 | struct snd_ctl_elem_id sid; | 429 | struct snd_ctl_elem_id sid = {0}; |
429 | memset(&sid, 0, sizeof(sid)); | 430 | |
430 | /* FIXME: strcpy is bad. */ | 431 | strlcpy(sid.name, name, sizeof(sid.name)); |
431 | strcpy(sid.name, name); | ||
432 | sid.iface = SNDRV_CTL_ELEM_IFACE_MIXER; | 432 | sid.iface = SNDRV_CTL_ELEM_IFACE_MIXER; |
433 | return snd_ctl_find_id(card, &sid); | 433 | return snd_ctl_find_id(card, &sid); |
434 | } | 434 | } |
diff --git a/sound/pci/ice1712/quartet.c b/sound/pci/ice1712/quartet.c index d145b5eb7ff8..5bc836241c97 100644 --- a/sound/pci/ice1712/quartet.c +++ b/sound/pci/ice1712/quartet.c | |||
@@ -26,6 +26,7 @@ | |||
26 | #include <linux/interrupt.h> | 26 | #include <linux/interrupt.h> |
27 | #include <linux/init.h> | 27 | #include <linux/init.h> |
28 | #include <linux/slab.h> | 28 | #include <linux/slab.h> |
29 | #include <linux/string.h> | ||
29 | #include <sound/core.h> | 30 | #include <sound/core.h> |
30 | #include <sound/tlv.h> | 31 | #include <sound/tlv.h> |
31 | #include <sound/info.h> | 32 | #include <sound/info.h> |
@@ -785,10 +786,9 @@ DECLARE_TLV_DB_SCALE(qtet_master_db_scale, -6350, 50, 1); | |||
785 | static struct snd_kcontrol *ctl_find(struct snd_card *card, | 786 | static struct snd_kcontrol *ctl_find(struct snd_card *card, |
786 | const char *name) | 787 | const char *name) |
787 | { | 788 | { |
788 | struct snd_ctl_elem_id sid; | 789 | struct snd_ctl_elem_id sid = {0}; |
789 | memset(&sid, 0, sizeof(sid)); | 790 | |
790 | /* FIXME: strcpy is bad. */ | 791 | strlcpy(sid.name, name, sizeof(sid.name)); |
791 | strcpy(sid.name, name); | ||
792 | sid.iface = SNDRV_CTL_ELEM_IFACE_MIXER; | 792 | sid.iface = SNDRV_CTL_ELEM_IFACE_MIXER; |
793 | return snd_ctl_find_id(card, &sid); | 793 | return snd_ctl_find_id(card, &sid); |
794 | } | 794 | } |