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/kahlua.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/kahlua.c')
-rw-r--r-- | sound/oss/kahlua.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/oss/kahlua.c b/sound/oss/kahlua.c index 12e7b3038be2..dfe670f12e67 100644 --- a/sound/oss/kahlua.c +++ b/sound/oss/kahlua.c | |||
@@ -139,13 +139,12 @@ static int __devinit probe_one(struct pci_dev *pdev, const struct pci_device_id | |||
139 | printk(KERN_INFO "kahlua: XpressAudio on IRQ %d, DMA %d, %d\n", | 139 | printk(KERN_INFO "kahlua: XpressAudio on IRQ %d, DMA %d, %d\n", |
140 | irq, dma8, dma16); | 140 | irq, dma8, dma16); |
141 | 141 | ||
142 | hw_config = kmalloc(sizeof(struct address_info), GFP_KERNEL); | 142 | hw_config = kzalloc(sizeof(struct address_info), GFP_KERNEL); |
143 | if(hw_config == NULL) | 143 | if(hw_config == NULL) |
144 | { | 144 | { |
145 | printk(KERN_ERR "kahlua: out of memory.\n"); | 145 | printk(KERN_ERR "kahlua: out of memory.\n"); |
146 | return 1; | 146 | return 1; |
147 | } | 147 | } |
148 | memset(hw_config, 0, sizeof(*hw_config)); | ||
149 | 148 | ||
150 | pci_set_drvdata(pdev, hw_config); | 149 | pci_set_drvdata(pdev, hw_config); |
151 | 150 | ||