diff options
author | Robert P. J. Day <rpjday@mindspring.com> | 2007-02-14 03:33:16 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-14 11:09:54 -0500 |
commit | 3159f06dc2303630c02d1ad2eeaeaf341414c9df (patch) | |
tree | 678779f605dac635df3932381933b3950a0052ba /sound/oss/ad1889.c | |
parent | cd354f1ae75e6466a7e31b727faede57a1f89ca5 (diff) |
[PATCH] OSS: replace kmalloc()+memset() combos with kzalloc()
Replace kmalloc() + memset() pairs with the appropriate kzalloc() calls.
Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'sound/oss/ad1889.c')
-rw-r--r-- | sound/oss/ad1889.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/oss/ad1889.c b/sound/oss/ad1889.c index f0724327493c..c0730a3563a2 100644 --- a/sound/oss/ad1889.c +++ b/sound/oss/ad1889.c | |||
@@ -230,9 +230,8 @@ static ad1889_dev_t *ad1889_alloc_dev(struct pci_dev *pci) | |||
230 | struct dmabuf *dmabuf; | 230 | struct dmabuf *dmabuf; |
231 | int i; | 231 | int i; |
232 | 232 | ||
233 | if ((dev = kmalloc(sizeof(ad1889_dev_t), GFP_KERNEL)) == NULL) | 233 | if ((dev = kzalloc(sizeof(ad1889_dev_t), GFP_KERNEL)) == NULL) |
234 | return NULL; | 234 | return NULL; |
235 | memset(dev, 0, sizeof(ad1889_dev_t)); | ||
236 | spin_lock_init(&dev->lock); | 235 | spin_lock_init(&dev->lock); |
237 | dev->pci = pci; | 236 | dev->pci = pci; |
238 | 237 | ||