diff options
author | Panagiotis Issaris <takis@issaris.org> | 2006-07-25 15:28:03 +0200 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-08-03 15:21:18 +0200 |
commit | 59feddb25f9d925e86ee22596802405788bc050f (patch) | |
tree | 0d272bdcb64cf2bcc19adf8735215ce261aea355 /sound/core/seq | |
parent | fb6a0d635d4ff6b3555179d0154981f03427071a (diff) | |
download | linux-59feddb25f9d925e86ee22596802405788bc050f.tar.gz linux-59feddb25f9d925e86ee22596802405788bc050f.tar.bz2 linux-59feddb25f9d925e86ee22596802405788bc050f.zip |
[ALSA] Conversions from kmalloc+memset to k(z|c)alloc
sound: Conversions from kmalloc+memset to k(c|z)alloc.
Signed-off-by: Panagiotis Issaris <takis@issaris.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
Diffstat (limited to 'sound/core/seq')
-rw-r--r-- | sound/core/seq/seq_device.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/core/seq/seq_device.c b/sound/core/seq/seq_device.c index 4260de90f36f..102ff548ce69 100644 --- a/sound/core/seq/seq_device.c +++ b/sound/core/seq/seq_device.c @@ -372,10 +372,9 @@ static struct ops_list * create_driver(char *id) { struct ops_list *ops; - ops = kmalloc(sizeof(*ops), GFP_KERNEL); + ops = kzalloc(sizeof(*ops), GFP_KERNEL); if (ops == NULL) return ops; - memset(ops, 0, sizeof(*ops)); /* set up driver entry */ strlcpy(ops->id, id, sizeof(ops->id)); |