diff options
Diffstat (limited to 'include/linux/err.h')
| -rw-r--r-- | include/linux/err.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/err.h b/include/linux/err.h index f2edce25a..9b8c28d66 100644 --- a/include/linux/err.h +++ b/include/linux/err.h @@ -60,6 +60,9 @@ static inline int __must_check PTR_RET(const void *ptr) return 0; } +/* for backport */ +#define PTR_ERR_OR_ZERO(p) PTR_RET(p) + #endif #endif /* _LINUX_ERR_H */ |
