staging: zcache: cleanup zbud_init
authorXiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Tue, 26 Jun 2012 08:51:10 +0000 (16:51 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Jul 2012 18:31:16 +0000 (11:31 -0700)
Need not set global parameters to 0

Acked-by: Seth Jennings <sjenning@linux.vnet.ibm.com>
Signed-off-by: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/zcache/zcache-main.c

index a77cacb..0529b46 100644 (file)
@@ -605,11 +605,9 @@ static void __init zbud_init(void)
        int i;
 
        INIT_LIST_HEAD(&zbud_buddied_list);
-       zcache_zbud_buddied_count = 0;
-       for (i = 0; i < NCHUNKS; i++) {
+
+       for (i = 0; i < NCHUNKS; i++)
                INIT_LIST_HEAD(&zbud_unbuddied[i].list);
-               zbud_unbuddied[i].count = 0;
-       }
 }
 
 #ifdef CONFIG_SYSFS