lkml.org 
[lkml]   [2013]   [Jun]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 7/9] staging/zcache: don't use PTR_RET().
Date
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


\
 
 \ /
  Last update: 2013-06-16 07:01    [W:0.115 / U:2.316 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site