Rev 5270 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5270 | Rev 6936 | ||
---|---|---|---|
Line 35... | Line 35... | ||
35 | return IS_ERR_VALUE((unsigned long)ptr); |
35 | return IS_ERR_VALUE((unsigned long)ptr); |
36 | } |
36 | } |
Line 37... | Line 37... | ||
37 | 37 | ||
38 | static inline bool __must_check IS_ERR_OR_NULL(__force const void *ptr) |
38 | static inline bool __must_check IS_ERR_OR_NULL(__force const void *ptr) |
39 | { |
39 | { |
40 | return !ptr || IS_ERR_VALUE((unsigned long)ptr); |
40 | return unlikely(!ptr) || IS_ERR_VALUE((unsigned long)ptr); |
Line 41... | Line 41... | ||
41 | } |
41 | } |
42 | 42 | ||
43 | /** |
43 | /** |