Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/common/include/linux Define PTR_ERR_OR_ZERO.
details: https://anonhg.NetBSD.org/src/rev/5991c00a3fc4
branches: trunk
changeset: 992639:5991c00a3fc4
user: riastradh <riastradh%NetBSD.org@localhost>
date: Mon Aug 27 07:20:25 2018 +0000
description:
Define PTR_ERR_OR_ZERO.
diffstat:
sys/external/bsd/common/include/linux/err.h | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (22 lines):
diff -r cf8d21548d07 -r 5991c00a3fc4 sys/external/bsd/common/include/linux/err.h
--- a/sys/external/bsd/common/include/linux/err.h Mon Aug 27 07:20:16 2018 +0000
+++ b/sys/external/bsd/common/include/linux/err.h Mon Aug 27 07:20:25 2018 +0000
@@ -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 @@
}
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_ */
Home |
Main Index |
Thread Index |
Old Index