diff options
author | Om Narasimhan <om.turyx@gmail.com> | 2006-10-03 16:27:18 -0700 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-10-04 00:31:04 -0700 |
commit | 0c1cca1d8e0d58775dad43374f925e6cddf1bebc (patch) | |
tree | 72b5aee63958025c7e3aa03f76ae40a004b58750 /drivers/atm/adummy.c | |
parent | 617dbeaa3f2987acc83c1149409685005e9dd740 (diff) | |
download | kernel_samsung_smdk4412-0c1cca1d8e0d58775dad43374f925e6cddf1bebc.tar.gz kernel_samsung_smdk4412-0c1cca1d8e0d58775dad43374f925e6cddf1bebc.tar.bz2 kernel_samsung_smdk4412-0c1cca1d8e0d58775dad43374f925e6cddf1bebc.zip |
[ATM]: kmalloc to kzalloc patches for drivers/atm
Signed-off-by: Om Narasimhan <om.turyx@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/atm/adummy.c')
-rw-r--r-- | drivers/atm/adummy.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/atm/adummy.c b/drivers/atm/adummy.c index 6cc93de0b71..ac2c10822be 100644 --- a/drivers/atm/adummy.c +++ b/drivers/atm/adummy.c @@ -113,15 +113,13 @@ static int __init adummy_init(void) printk(KERN_ERR "adummy: version %s\n", DRV_VERSION); - adummy_dev = (struct adummy_dev *) kmalloc(sizeof(struct adummy_dev), + adummy_dev = kzalloc(sizeof(struct adummy_dev), GFP_KERNEL); if (!adummy_dev) { - printk(KERN_ERR DEV_LABEL ": kmalloc() failed\n"); + printk(KERN_ERR DEV_LABEL ": kzalloc() failed\n"); err = -ENOMEM; goto out; } - memset(adummy_dev, 0, sizeof(struct adummy_dev)); - atm_dev = atm_dev_register(DEV_LABEL, &adummy_ops, -1, NULL); if (!atm_dev) { printk(KERN_ERR DEV_LABEL ": atm_dev_register() failed\n"); |