]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
zcache: Fix build error when sysfs is not defined
authorNitin Gupta <ngupta@vflare.org>
Thu, 4 Aug 2011 22:05:24 +0000 (15:05 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 8 Aug 2011 19:05:35 +0000 (12:05 -0700)
Signed-off-by: Nitin Gupta <ngupta@vflare.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/zcache/zcache-main.c

index 2c41c4465e14c5c73127963145448344590974d5..855a5bb56a47d8e591873b05e6be15ec6f4f6ee0 100644 (file)
@@ -1936,9 +1936,9 @@ __setup("nofrontswap", no_frontswap);
 
 static int __init zcache_init(void)
 {
-#ifdef CONFIG_SYSFS
        int ret = 0;
 
+#ifdef CONFIG_SYSFS
        ret = sysfs_create_group(mm_kobj, &zcache_attr_group);
        if (ret) {
                pr_err("zcache: can't create sysfs\n");