diff options
author | Andrew Morton <akpm@osdl.org> | 2006-04-07 14:52:59 -0700 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-04-09 22:25:48 -0700 |
commit | 77d04bd957ddca9d48a664e28b40f33993f4550e (patch) | |
tree | 8940d3ab7557aed03756e05eec13605e315c887e /net/core/dv.c | |
parent | 31380de95cc3183bbb379339e67f83d69e56fbd6 (diff) | |
download | op-kernel-dev-77d04bd957ddca9d48a664e28b40f33993f4550e.zip op-kernel-dev-77d04bd957ddca9d48a664e28b40f33993f4550e.tar.gz |
[NET]: More kzalloc conversions.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/dv.c')
-rw-r--r-- | net/core/dv.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/net/core/dv.c b/net/core/dv.c index cf58140..29ee77f1 100644 --- a/net/core/dv.c +++ b/net/core/dv.c @@ -55,15 +55,12 @@ int alloc_divert_blk(struct net_device *dev) dev->divert = NULL; if (dev->type == ARPHRD_ETHER) { - dev->divert = (struct divert_blk *) - kmalloc(alloc_size, GFP_KERNEL); + dev->divert = kzalloc(alloc_size, GFP_KERNEL); if (dev->divert == NULL) { printk(KERN_INFO "divert: unable to allocate divert_blk for %s\n", dev->name); return -ENOMEM; } - - memset(dev->divert, 0, sizeof(struct divert_blk)); dev_hold(dev); } |