projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PKTGEN]: fix device name handling
[powerpc.git]
/
sound
/
oss
/
ad1889.c
diff --git
a/sound/oss/ad1889.c
b/sound/oss/ad1889.c
index
f072432
..
c0730a3
100644
(file)
--- 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)
struct dmabuf *dmabuf;
int i;
struct dmabuf *dmabuf;
int i;
- if ((dev = k
malloc(sizeof(ad1889_dev_t), GFP_KERNEL)) == NULL)
+ if ((dev = k
zalloc(sizeof(ad1889_dev_t), GFP_KERNEL)) == NULL)
return NULL;
return NULL;
- memset(dev, 0, sizeof(ad1889_dev_t));
spin_lock_init(&dev->lock);
dev->pci = pci;
spin_lock_init(&dev->lock);
dev->pci = pci;