Messages in this thread Patch in this message | | | From | Rusty Russell <> | Subject | [PATCH 7/9] staging/zcache: don't use PTR_RET(). | Date | Sun, 16 Jun 2013 14:12:46 +0930 |
| |
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> --- 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
| |