Module Name: src
Committed By: riastradh
Date: Mon Aug 27 07:20:25 UTC 2018
Modified Files:
src/sys/external/bsd/common/include/linux: err.h
Log Message:
Define PTR_ERR_OR_ZERO.
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/external/bsd/common/include/linux/err.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/external/bsd/common/include/linux/err.h
diff -u src/sys/external/bsd/common/include/linux/err.h:1.1 src/sys/external/bsd/common/include/linux/err.h:1.2
--- src/sys/external/bsd/common/include/linux/err.h:1.1 Tue Aug 18 21:10:56 2015
+++ src/sys/external/bsd/common/include/linux/err.h Mon Aug 27 07:20:25 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: err.h,v 1.1 2015/08/18 21:10:56 skrll Exp $ */
+/* $NetBSD: err.h,v 1.2 2018/08/27 07:20:25 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -79,9 +79,11 @@ ERR_CAST(void *ptr) /* XXX Linux declar
}
static inline long
-PTR_RET(const void *ptr)
+PTR_ERR_OR_ZERO(const void *ptr)
{
return (IS_ERR(ptr)? PTR_ERR(ptr) : 0);
}
+#define PTR_RET PTR_ERR_OR_ZERO
+
#endif /* _LINUX_ERR_H_ */