diff options
author | Joonwoo Park <joonwpark81@gmail.com> | 2007-12-31 02:19:26 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:00:14 -0500 |
commit | a5929af4075c2ccd08aef7ca95a41f2a2abb3e47 (patch) | |
tree | 86a8f80c8e630b40e912614d29e8e61847f39301 | |
parent | fb64c735a52f396aa261844b851cd820a80dee46 (diff) |
[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>
-rw-r--r-- | drivers/atm/ambassador.c | 3 |
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) | |||
2163 | static void setup_dev(amb_dev *dev, struct pci_dev *pci_dev) | 2163 | static void setup_dev(amb_dev *dev, struct pci_dev *pci_dev) |
2164 | { | 2164 | { |
2165 | unsigned char pool; | 2165 | unsigned char pool; |
2166 | memset (dev, 0, sizeof(amb_dev)); | ||
2167 | 2166 | ||
2168 | // set up known dev items straight away | 2167 | // set up known dev items straight away |
2169 | dev->pci_dev = pci_dev; | 2168 | dev->pci_dev = pci_dev; |
@@ -2253,7 +2252,7 @@ static int __devinit amb_probe(struct pci_dev *pci_dev, const struct pci_device_ | |||
2253 | goto out_disable; | 2252 | goto out_disable; |
2254 | } | 2253 | } |
2255 | 2254 | ||
2256 | dev = kmalloc (sizeof(amb_dev), GFP_KERNEL); | 2255 | dev = kzalloc(sizeof(amb_dev), GFP_KERNEL); |
2257 | if (!dev) { | 2256 | if (!dev) { |
2258 | PRINTK (KERN_ERR, "out of memory!"); | 2257 | PRINTK (KERN_ERR, "out of memory!"); |
2259 | err = -ENOMEM; | 2258 | err = -ENOMEM; |