treewide: kzalloc() -> kcalloc()
[linux-2.6-microblaze.git] / net / netrom / af_netrom.c
index b97eb76..93fbcaf 100644 (file)
@@ -1395,7 +1395,7 @@ static int __init nr_proto_init(void)
                return -1;
        }
 
-       dev_nr = kzalloc(nr_ndevs * sizeof(struct net_device *), GFP_KERNEL);
+       dev_nr = kcalloc(nr_ndevs, sizeof(struct net_device *), GFP_KERNEL);
        if (dev_nr == NULL) {
                printk(KERN_ERR "NET/ROM: nr_proto_init - unable to allocate device array\n");
                return -1;