Rev 4065 | Rev 5056 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4065 | Rev 4103 | ||
---|---|---|---|
Line 50... | Line 50... | ||
50 | { |
50 | { |
51 | /* cast away the const */ |
51 | /* cast away the const */ |
52 | return (void *) ptr; |
52 | return (void *) ptr; |
53 | } |
53 | } |
Line 54... | Line 54... | ||
54 | 54 | ||
55 | static inline int __must_check PTR_RET(__force const void *ptr) |
55 | static inline int __must_check PTR_ERR_OR_ZERO(__force const void *ptr) |
56 | { |
56 | { |
57 | if (IS_ERR(ptr)) |
57 | if (IS_ERR(ptr)) |
58 | return PTR_ERR(ptr); |
58 | return PTR_ERR(ptr); |
59 | else |
59 | else |
60 | return 0; |
60 | return 0; |
Line -... | Line 61... | ||
- | 61 | } |
|
- | 62 | ||
- | 63 | /* Deprecated */ |
|
61 | } |
64 | #define PTR_RET(p) PTR_ERR_OR_ZERO(p) |
Line 62... | Line 65... | ||
62 | 65 |