summaryrefslogtreecommitdiff
path: root/drivers/staging
diff options
context:
space:
mode:
authorNitin Gupta <ngupta@vflare.org>2011-08-05 02:05:24 +0400
committerGreg Kroah-Hartman <gregkh@suse.de>2011-08-08 23:05:35 +0400
commitd8c778fdf2bcd42e495ca1ca67bca729639352b7 (patch)
treee5563bca5bc26d02245830bb2f3517f0dad9f687 /drivers/staging
parent3ca15c4486beb113700cda44e32109cf0d97528b (diff)
downloadlinux-d8c778fdf2bcd42e495ca1ca67bca729639352b7.tar.xz
zcache: Fix build error when sysfs is not defined
Signed-off-by: Nitin Gupta <ngupta@vflare.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/zcache/zcache-main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/zcache/zcache-main.c b/drivers/staging/zcache/zcache-main.c
index 2c41c4465e14..855a5bb56a47 100644
--- a/drivers/staging/zcache/zcache-main.c
+++ b/drivers/staging/zcache/zcache-main.c
@@ -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");