/drivers/include/linux/err.h |
---|
52,7 → 52,7 |
return (void *) ptr; |
} |
static inline int __must_check PTR_RET(__force const void *ptr) |
static inline int __must_check PTR_ERR_OR_ZERO(__force const void *ptr) |
{ |
if (IS_ERR(ptr)) |
return PTR_ERR(ptr); |
60,6 → 60,9 |
return 0; |
} |
/* Deprecated */ |
#define PTR_RET(p) PTR_ERR_OR_ZERO(p) |
#endif |
#endif /* _LINUX_ERR_H */ |