lkml.org 
[lkml]   [2018]   [Jul]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH linux-next] Remove PTR_RET
The last instances of PTR_RET have been replaced with PTR_ERR_OR_ZERO.

We can completely remove PTR_RET from the codebase now.

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
---
include/linux/err.h | 3 ---
1 file changed, 3 deletions(-)

diff --git a/include/linux/err.h b/include/linux/err.h
index 87be243..a139c64 100644
--- a/include/linux/err.h
+++ b/include/linux/err.h
@@ -62,9 +62,6 @@ static inline int __must_check PTR_ERR_OR_ZERO(__force const void *ptr)
return 0;
}

-/* Deprecated */
-#define PTR_RET(p) PTR_ERR_OR_ZERO(p)
-
#endif

#endif /* _LINUX_ERR_H */
--
2.7.4
\
 
 \ /
  Last update: 2018-07-28 00:48    [W:0.111 / U:0.296 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site