aboutsummaryrefslogtreecommitdiffstats
path: root/sound/oss/btaudio.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/btaudio.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/btaudio.c')
-rw-r--r--sound/oss/btaudio.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/oss/btaudio.c b/sound/oss/btaudio.c
index f845528e1fac..f813ae9c2134 100644
--- a/sound/oss/btaudio.c
+++ b/sound/oss/btaudio.c
@@ -915,12 +915,11 @@ static int __devinit btaudio_probe(struct pci_dev *pci_dev,
915 return -EBUSY; 915 return -EBUSY;
916 } 916 }
917 917
918 bta = kmalloc(sizeof(*bta),GFP_ATOMIC); 918 bta = kzalloc(sizeof(*bta),GFP_ATOMIC);
919 if (!bta) { 919 if (!bta) {
920 rc = -ENOMEM; 920 rc = -ENOMEM;
921 goto fail0; 921 goto fail0;
922 } 922 }
923 memset(bta,0,sizeof(*bta));
924 923
925 bta->pci = pci_dev; 924 bta->pci = pci_dev;
926 bta->irq = pci_dev->irq; 925 bta->irq = pci_dev->irq;