]> Git Repo - linux.git/blobdiff - include/linux/err.h
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/djbw/async_tx
[linux.git] / include / linux / err.h
index 448afc12c78afe6157929010a7fba01a6d63ba8e..f2edce25a76b64f91701cdbd2c680dce19b90706 100644 (file)
@@ -52,6 +52,14 @@ static inline void * __must_check ERR_CAST(const void *ptr)
        return (void *) ptr;
 }
 
+static inline int __must_check PTR_RET(const void *ptr)
+{
+       if (IS_ERR(ptr))
+               return PTR_ERR(ptr);
+       else
+               return 0;
+}
+
 #endif
 
 #endif /* _LINUX_ERR_H */
This page took 0.032796 seconds and 4 git commands to generate.