We've already tested that it's an error.

Cc: Dan Magenheimer <dan.magenhei...@oracle.com>
Signed-off-by: Rusty Russell <ru...@rustcorp.com.au>
---
 drivers/staging/zcache/zcache-main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/zcache/zcache-main.c 
b/drivers/staging/zcache/zcache-main.c
index dcceed2..88e7fe7 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);
                }
        }
-- 
1.8.1.2

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to