]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/atm/resources.c
[ATM]: [lec] indent, comment and whitespace cleanup [continued]
[linux-2.6-omap-h63xx.git] / net / atm / resources.c
index de25c6408b04024e0f5f7f85b8c22564839e148b..529f7e64aa2c33ae45d162b035ccf241431c6c0d 100644 (file)
@@ -33,10 +33,9 @@ static struct atm_dev *__alloc_atm_dev(const char *type)
 {
        struct atm_dev *dev;
 
-       dev = kmalloc(sizeof(*dev), GFP_KERNEL);
+       dev = kzalloc(sizeof(*dev), GFP_KERNEL);
        if (!dev)
                return NULL;
-       memset(dev, 0, sizeof(*dev));
        dev->type = type;
        dev->signal = ATM_PHY_SIG_UNKNOWN;
        dev->link_rate = ATM_OC3_PCR;