Ignore:
Timestamp:
Jan 1, 2021, 5:31:48 AM (5 years ago)
Author:
Paul Smedley
Message:

Add source for uniaud32 based on code from linux kernel 5.4.86

Location:
GPL/branches/uniaud32-next
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • GPL/branches/uniaud32-next/include/linux/err.h

    r305 r615  
    2020}
    2121
     22static inline int PTR_RET(const void *ptr)
     23{
     24        if (IS_ERR(ptr))
     25                return PTR_ERR(ptr);
     26        else
     27                return 0;
     28}
     29
     30#define PTR_ERR_OR_ZERO(p) PTR_RET(p)
    2231#endif /* _LINUX_ERR_H */
Note: See TracChangeset for help on using the changeset viewer.