printk(KERN_NOTICE "USB 1.1 Host\n");
#endif
- macp = kmalloc(sizeof(struct usbdrv_private), GFP_KERNEL);
+ macp = kzalloc(sizeof(struct usbdrv_private), GFP_KERNEL);
if (!macp)
{
printk(KERN_ERR "out of memory allocating device structure\n");
goto fail;
}
- /* Zero the memory */
- memset(macp, 0, sizeof(struct usbdrv_private));
-
net = alloc_etherdev(0);
if (net == NULL)