summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJoonwoo Park <joonwpark81@gmail.com>2007-12-31 08:19:26 +0100
committerDavid S. Miller <davem@davemloft.net>2008-01-29 00:00:14 +0100
commita5929af4075c2ccd08aef7ca95a41f2a2abb3e47 (patch)
tree86a8f80c8e630b40e912614d29e8e61847f39301 /drivers
parent[ATM]: [br2864] whitespace cleanup (diff)
downloadlinux-a5929af4075c2ccd08aef7ca95a41f2a2abb3e47.tar.xz
linux-a5929af4075c2ccd08aef7ca95a41f2a2abb3e47.zip
[ATM]: [ambassador] kmalloc + memset conversion to kzalloc
Signed-off-by: Joonwoo Park <joonwpark81@gmail.com> Signed-off-by: Chas Williams <chas@cmf.nrl.navy.mil> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/atm/ambassador.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/atm/ambassador.c b/drivers/atm/ambassador.c
index b34b3829f6a9..7b44a5965155 100644
--- a/drivers/atm/ambassador.c
+++ b/drivers/atm/ambassador.c
@@ -2163,7 +2163,6 @@ static int __devinit amb_init (amb_dev * dev)
static void setup_dev(amb_dev *dev, struct pci_dev *pci_dev)
{
unsigned char pool;
- memset (dev, 0, sizeof(amb_dev));
// set up known dev items straight away
dev->pci_dev = pci_dev;
@@ -2253,7 +2252,7 @@ static int __devinit amb_probe(struct pci_dev *pci_dev, const struct pci_device_
goto out_disable;
}
- dev = kmalloc (sizeof(amb_dev), GFP_KERNEL);
+ dev = kzalloc(sizeof(amb_dev), GFP_KERNEL);
if (!dev) {
PRINTK (KERN_ERR, "out of memory!");
err = -ENOMEM;