From 9d35d26413302a693b5937198841f73afa816f95 Mon Sep 17 00:00:00 2001 From: Amir Vadai Date: Sun, 11 Oct 2009 12:16:27 +0200 Subject: [PATCH] sdp: removed unneeded list initialization - percpu_counter might not have this memeber Signed-off-by: Amir Vadai --- drivers/infiniband/ulp/sdp/sdp_main.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/infiniband/ulp/sdp/sdp_main.c b/drivers/infiniband/ulp/sdp/sdp_main.c index 5ed6e751e05f..24d413ff7234 100644 --- a/drivers/infiniband/ulp/sdp/sdp_main.c +++ b/drivers/infiniband/ulp/sdp/sdp_main.c @@ -2627,17 +2627,14 @@ static int __init sdp_init(void) spin_lock_init(&sock_list_lock); spin_lock_init(&sdp_large_sockets_lock); - sockets_allocated = kmalloc(sizeof(*sockets_allocated), GFP_KERNEL); + sockets_allocated = kzalloc(sizeof(*sockets_allocated), GFP_KERNEL); if (!sockets_allocated) goto no_mem_sockets_allocated; - orphan_count = kmalloc(sizeof(*orphan_count), GFP_KERNEL); + orphan_count = kzalloc(sizeof(*orphan_count), GFP_KERNEL); if (!orphan_count) goto no_mem_orphan_count; - INIT_LIST_HEAD(&sockets_allocated->list); - INIT_LIST_HEAD(&orphan_count->list); - percpu_counter_init(sockets_allocated, 0); percpu_counter_init(orphan_count, 0); -- 2.50.1