Commit a5929af4 authored by Joonwoo Park's avatar Joonwoo Park Committed by David S. Miller

[ATM]: [ambassador] kmalloc + memset conversion to kzalloc

Signed-off-by: default avatarJoonwoo Park <joonwpark81@gmail.com>
Signed-off-by: default avatarChas Williams <chas@cmf.nrl.navy.mil>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent fb64c735
...@@ -2163,7 +2163,6 @@ static int __devinit amb_init (amb_dev * dev) ...@@ -2163,7 +2163,6 @@ static int __devinit amb_init (amb_dev * dev)
static void setup_dev(amb_dev *dev, struct pci_dev *pci_dev) static void setup_dev(amb_dev *dev, struct pci_dev *pci_dev)
{ {
unsigned char pool; unsigned char pool;
memset (dev, 0, sizeof(amb_dev));
// set up known dev items straight away // set up known dev items straight away
dev->pci_dev = pci_dev; dev->pci_dev = pci_dev;
...@@ -2253,7 +2252,7 @@ static int __devinit amb_probe(struct pci_dev *pci_dev, const struct pci_device_ ...@@ -2253,7 +2252,7 @@ static int __devinit amb_probe(struct pci_dev *pci_dev, const struct pci_device_
goto out_disable; goto out_disable;
} }
dev = kmalloc (sizeof(amb_dev), GFP_KERNEL); dev = kzalloc(sizeof(amb_dev), GFP_KERNEL);
if (!dev) { if (!dev) {
PRINTK (KERN_ERR, "out of memory!"); PRINTK (KERN_ERR, "out of memory!");
err = -ENOMEM; err = -ENOMEM;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment