diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2006-07-09 12:14:22 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2006-07-09 12:14:22 -0700 |
commit | 1b30dd359ebec22d035e8b145751319f63772ca1 (patch) | |
tree | 1efbdc5573940817dac79672357e1c2fa1ed6a28 /net/rose | |
parent | 24781734643ea2e9fd864f58000e47793e2dcb04 (diff) | |
download | linux-3.10-1b30dd359ebec22d035e8b145751319f63772ca1.tar.gz linux-3.10-1b30dd359ebec22d035e8b145751319f63772ca1.tar.bz2 linux-3.10-1b30dd359ebec22d035e8b145751319f63772ca1.zip |
[AX.25]: Use kzalloc
Replace kzalloc instead of kmalloc + memset.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rose')
-rw-r--r-- | net/rose/af_rose.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/rose/af_rose.c b/net/rose/af_rose.c index d0a67bb3136..c115295ab43 100644 --- a/net/rose/af_rose.c +++ b/net/rose/af_rose.c @@ -1490,14 +1490,13 @@ static int __init rose_proto_init(void) rose_callsign = null_ax25_address; - dev_rose = kmalloc(rose_ndevs * sizeof(struct net_device *), GFP_KERNEL); + dev_rose = kzalloc(rose_ndevs * sizeof(struct net_device *), GFP_KERNEL); if (dev_rose == NULL) { printk(KERN_ERR "ROSE: rose_proto_init - unable to allocate device structure\n"); rc = -ENOMEM; goto out_proto_unregister; } - memset(dev_rose, 0x00, rose_ndevs * sizeof(struct net_device*)); for (i = 0; i < rose_ndevs; i++) { struct net_device *dev; char name[IFNAMSIZ]; |