From: Joonwoo Park Date: Mon, 31 Dec 2007 07:19:26 +0000 (-0800) Subject: [ATM]: [ambassador] kmalloc + memset conversion to kzalloc X-Git-Tag: v2.6.25-rc1~1162^2~905 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5929af4075c2ccd08aef7ca95a41f2a2abb3e47;p=linux-2.6 [ATM]: [ambassador] kmalloc + memset conversion to kzalloc Signed-off-by: Joonwoo Park Signed-off-by: Chas Williams Signed-off-by: David S. Miller --- diff --git a/drivers/atm/ambassador.c b/drivers/atm/ambassador.c index b34b3829f6..7b44a59651 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;