um: replace kmalloc+memset with kzalloc

Replace kmalloc+memset with kzalloc

Signed-off-by: Yan Burman <burman.yan@gmail.com>
Signed-off-by: Adrian Bunk <bunk@stusta.de>

authored by Yan Burman and committed by Adrian Bunk 0268bd0a 47c6bf77

+1 -2
+1 -2
arch/um/drivers/net_kern.c
··· 334 size = transport->private_size + sizeof(struct uml_net_private) + 335 sizeof(((struct uml_net_private *) 0)->user); 336 337 - device = kmalloc(sizeof(*device), GFP_KERNEL); 338 if (device == NULL) { 339 printk(KERN_ERR "eth_configure failed to allocate uml_net\n"); 340 return(1); 341 } 342 343 - memset(device, 0, sizeof(*device)); 344 INIT_LIST_HEAD(&device->list); 345 device->index = n; 346
··· 334 size = transport->private_size + sizeof(struct uml_net_private) + 335 sizeof(((struct uml_net_private *) 0)->user); 336 337 + device = kzalloc(sizeof(*device), GFP_KERNEL); 338 if (device == NULL) { 339 printk(KERN_ERR "eth_configure failed to allocate uml_net\n"); 340 return(1); 341 } 342 343 INIT_LIST_HEAD(&device->list); 344 device->index = n; 345