aboutsummaryrefslogtreecommitdiffstats
path: root/sound/oss/nec_vrc5477.c
diff options
context:
space:
mode:
authorRobert P. J. Day <rpjday@mindspring.com>2007-02-14 03:33:16 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-02-14 11:09:54 -0500
commit3159f06dc2303630c02d1ad2eeaeaf341414c9df (patch)
tree678779f605dac635df3932381933b3950a0052ba /sound/oss/nec_vrc5477.c
parentcd354f1ae75e6466a7e31b727faede57a1f89ca5 (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/nec_vrc5477.c')
-rw-r--r--sound/oss/nec_vrc5477.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/oss/nec_vrc5477.c b/sound/oss/nec_vrc5477.c
index d459bdb14154..27b4ba3aaa7c 100644
--- a/sound/oss/nec_vrc5477.c
+++ b/sound/oss/nec_vrc5477.c
@@ -1860,11 +1860,10 @@ static int __devinit vrc5477_ac97_probe(struct pci_dev *pcidev,
1860 if (pcidev->irq == 0) 1860 if (pcidev->irq == 0)
1861 return -1; 1861 return -1;
1862 1862
1863 if (!(s = kmalloc(sizeof(struct vrc5477_ac97_state), GFP_KERNEL))) { 1863 if (!(s = kzalloc(sizeof(struct vrc5477_ac97_state), GFP_KERNEL))) {
1864 printk(KERN_ERR PFX "alloc of device struct failed\n"); 1864 printk(KERN_ERR PFX "alloc of device struct failed\n");
1865 return -1; 1865 return -1;
1866 } 1866 }
1867 memset(s, 0, sizeof(struct vrc5477_ac97_state));
1868 1867
1869 init_waitqueue_head(&s->dma_adc.wait); 1868 init_waitqueue_head(&s->dma_adc.wait);
1870 init_waitqueue_head(&s->dma_dac.wait); 1869 init_waitqueue_head(&s->dma_dac.wait);