Changeset 679 for GPL/trunk/include/linux/err.h
- Timestamp:
- Mar 18, 2021, 8:57:36 PM (4 years ago)
- Location:
- GPL/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk
- Property svn:mergeinfo changed
/GPL/branches/uniaud32-linux-3.2.102 (added) merged: 611-614 /GPL/branches/uniaud32-next (added) merged: 615-678
- Property svn:mergeinfo changed
-
GPL/trunk/include/linux/err.h
r305 r679 3 3 #ifndef _LINUX_ERR_H 4 4 #define _LINUX_ERR_H 5 #include <linux/types.h> 6 5 7 #define IS_ERR_VALUE(x) ((x) > (unsigned long)-1000L) 6 8 … … 20 22 } 21 23 24 static inline int PTR_RET(const void *ptr) 25 { 26 if (IS_ERR(ptr)) 27 return PTR_ERR(ptr); 28 else 29 return 0; 30 } 31 32 #define PTR_ERR_OR_ZERO(p) PTR_RET(p) 22 33 #endif /* _LINUX_ERR_H */
Note:
See TracChangeset
for help on using the changeset viewer.