summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2013-07-15 05:54:08 +0400
committerRusty Russell <rusty@rustcorp.com.au>2013-07-15 05:55:05 +0400
commit8a1d41cfeaf59a07acc7b1b3620ad6aa5cf47dc2 (patch)
tree952a0c6eff8cc30e01d932f469914275e300a164 /drivers
parent60d676c007964576e83d791fc0908af8d133519f (diff)
downloadlinux-8a1d41cfeaf59a07acc7b1b3620ad6aa5cf47dc2.tar.xz
staging/zcache: don't use PTR_RET().
We've already tested that it's an error. Cc: Dan Magenheimer <dan.magenheimer@oracle.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers')
-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 dcceed29d31a..88e7fe7fe183 100644
--- a/drivers/staging/zcache/zcache-main.c
+++ b/drivers/staging/zcache/zcache-main.c
@@ -1908,7 +1908,7 @@ static int zcache_init(void)
#endif
if (IS_ERR(old_ops) || old_ops) {
if (IS_ERR(old_ops))
- return PTR_RET(old_ops);
+ return PTR_ERR(old_ops);
pr_warn("%s: frontswap_ops overridden\n", namestr);
}
}