diff options
author | Arnaldo Carvalho de Melo <acme@mandriva.com> | 2006-11-21 01:22:12 -0200 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-12-02 21:30:21 -0800 |
commit | 2710b57ff9b1437cfbe96b23ae86fedf3239f1ca (patch) | |
tree | 6395382004f63722a23e13d8997362104a91243d /net/tipc/node.c | |
parent | e69062b4f728dca01ec1a9eb4ed55b73a374f164 (diff) | |
download | kernel_goldelico_gta04-2710b57ff9b1437cfbe96b23ae86fedf3239f1ca.zip kernel_goldelico_gta04-2710b57ff9b1437cfbe96b23ae86fedf3239f1ca.tar.gz kernel_goldelico_gta04-2710b57ff9b1437cfbe96b23ae86fedf3239f1ca.tar.bz2 |
[TIPC]: Use kzalloc where appropriate
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
Diffstat (limited to 'net/tipc/node.c')
-rw-r--r-- | net/tipc/node.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/tipc/node.c b/net/tipc/node.c index 106cd0d..4111a31 100644 --- a/net/tipc/node.c +++ b/net/tipc/node.c @@ -60,7 +60,7 @@ struct node *tipc_node_create(u32 addr) struct node *n_ptr; struct node **curr_node; - n_ptr = kmalloc(sizeof(*n_ptr),GFP_ATOMIC); + n_ptr = kzalloc(sizeof(*n_ptr),GFP_ATOMIC); if (!n_ptr) { warn("Node creation failed, no memory\n"); return NULL; @@ -75,7 +75,6 @@ struct node *tipc_node_create(u32 addr) return NULL; } - memset(n_ptr, 0, sizeof(*n_ptr)); n_ptr->addr = addr; spin_lock_init(&n_ptr->lock); INIT_LIST_HEAD(&n_ptr->nsub); |