From: Rusty Russell Date: Mon, 15 Jul 2013 01:54:08 +0000 (+0930) Subject: staging/zcache: don't use PTR_RET(). X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8a1d41cfeaf59a07acc7b1b3620ad6aa5cf47dc2;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git staging/zcache: don't use PTR_RET(). We've already tested that it's an error. Cc: Dan Magenheimer Signed-off-by: Rusty Russell --- 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); } }