diff options
Diffstat (limited to 'drivers/atm/ambassador.c')
-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; |