diff options
author | Lukas Bulwahn <lukas.bulwahn@gmail.com> | 2020-03-22 19:57:02 +0300 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2020-03-23 01:06:34 +0300 |
commit | fad7c9020948eab2bc4661eade4e1ef357279590 (patch) | |
tree | 5a262e9fee87920c330e9644b62539de4751c1b5 | |
parent | 7901b6e4e6ec5304a2e90e139fd607bec9e88778 (diff) | |
download | linux-fad7c9020948eab2bc4661eade4e1ef357279590.tar.xz |
err.h: remove deprecated PTR_RET for good
Initially, commit fa9ee9c4b988 ("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 6e8b8726ad50 ("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 <lukas.bulwahn@gmail.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
-rw-r--r-- | include/linux/err.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/include/linux/err.h b/include/linux/err.h index 87be24350e91..a139c64aef2a 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 */ |