diff options
author | Yan Burman <burman.yan@gmail.com> | 2006-12-12 19:54:52 +0100 |
---|---|---|
committer | Adrian Bunk <bunk@stusta.de> | 2006-12-12 19:54:52 +0100 |
commit | 0268bd0a807fc5cc41ced9cce95efe1b43e8fa52 (patch) | |
tree | a7561807de0d3048091bb67de77a55c8f4fc9c15 /arch | |
parent | fix typo in net/ipv4/ip_fragment.c (diff) | |
download | linux-0268bd0a807fc5cc41ced9cce95efe1b43e8fa52.tar.xz linux-0268bd0a807fc5cc41ced9cce95efe1b43e8fa52.zip |
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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/um/drivers/net_kern.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/um/drivers/net_kern.c b/arch/um/drivers/net_kern.c index 286bc0b3207f..b2e9762e13c5 100644 --- a/arch/um/drivers/net_kern.c +++ b/arch/um/drivers/net_kern.c @@ -334,13 +334,12 @@ static int eth_configure(int n, void *init, char *mac, size = transport->private_size + sizeof(struct uml_net_private) + sizeof(((struct uml_net_private *) 0)->user); - device = kmalloc(sizeof(*device), GFP_KERNEL); + device = kzalloc(sizeof(*device), GFP_KERNEL); if (device == NULL) { printk(KERN_ERR "eth_configure failed to allocate uml_net\n"); return(1); } - memset(device, 0, sizeof(*device)); INIT_LIST_HEAD(&device->list); device->index = n; |