diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2020-09-28 17:34:30 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-09-29 08:41:53 +0200 |
commit | 12d74001d52911dfb96d81b774183aeaba21370c (patch) | |
tree | f5af209ec784ab4bf486d55fdf7b870d17b2a7f4 /include/errno.h | |
parent | 91084b450226f22a8c6fee5a5762a4d0f44a18f4 (diff) | |
download | barebox-12d74001d52911dfb96d81b774183aeaba21370c.tar.gz barebox-12d74001d52911dfb96d81b774183aeaba21370c.tar.xz |
vsprintf: retire strerrorp in favor of %pe
strerrorp() is only used along with printf. We now have a format
specifier for printing error pointers directly, so use that and
remove strerrorp.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/errno.h')
-rw-r--r-- | include/errno.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/include/errno.h b/include/errno.h index 50f00de5d6..262c9fc3eb 100644 --- a/include/errno.h +++ b/include/errno.h @@ -11,9 +11,4 @@ void perror(const char *s); const char *errno_str(void); const char *strerror(int errnum); -static inline const char *strerrorp(const void *errp) -{ - return strerror(-PTR_ERR(errp)); -} - #endif /* __ERRNO_H */ |