Commit 8a1d41cf authored by Rusty Russell's avatar Rusty Russell

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: default avatarRusty Russell <rusty@rustcorp.com.au>
parent 60d676c0
...@@ -1908,7 +1908,7 @@ static int zcache_init(void) ...@@ -1908,7 +1908,7 @@ static int zcache_init(void)
#endif #endif
if (IS_ERR(old_ops) || old_ops) { if (IS_ERR(old_ops) || old_ops) {
if (IS_ERR(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); pr_warn("%s: frontswap_ops overridden\n", namestr);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment