Skip to content

Commit fad7c90

Browse files
bulwahnJiri Kosina
authored andcommitted
err.h: remove deprecated PTR_RET for good
Initially, commit fa9ee9c ("include/linux/err.h: add a function to cast error-pointers to a return value") from Uwe Kleine-König introduced PTR_RET in 03/2011. Then, in 07/2013, commit 6e8b872 ("PTR_RET is now PTR_ERR_OR_ZERO") from Rusty Russell renamed PTR_RET to PTR_ERR_OR_ZERO, and left PTR_RET as deprecated-marked alias. After six years since the renaming and various repeated cleanups in the meantime, it is time to finally remove the deprecated PTR_RET for good. Signed-off-by: Lukas Bulwahn <[email protected]> Acked-by: Uwe Kleine-König <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 7901b6e commit fad7c90

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

include/linux/err.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,6 @@ static inline int __must_check PTR_ERR_OR_ZERO(__force const void *ptr)
6262
return 0;
6363
}
6464

65-
/* Deprecated */
66-
#define PTR_RET(p) PTR_ERR_OR_ZERO(p)
67-
6865
#endif
6966

7067
#endif /* _LINUX_ERR_H */

0 commit comments

Comments
 (0)