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/7f32c22c9873
branches:  trunk
changeset: 365940:7f32c22c9873
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 67e9b172419e -r 7f32c22c9873 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