diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2013-07-15 11:24:08 +0930 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2013-07-15 11:25:05 +0930 |
commit | 8a1d41cfeaf59a07acc7b1b3620ad6aa5cf47dc2 (patch) | |
tree | 952a0c6eff8cc30e01d932f469914275e300a164 | |
parent | 60d676c007964576e83d791fc0908af8d133519f (diff) |
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>
-rw-r--r-- | drivers/staging/zcache/zcache-main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/zcache/zcache-main.c b/drivers/staging/zcache/zcache-main.c index dcceed29d31..88e7fe7fe18 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); } } |