summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjsg <jsg@openbsd.org>2020-06-14 05:26:04 +0000
committerjsg <jsg@openbsd.org>2020-06-14 05:26:04 +0000
commita24c48f087d1ce0520c70f60efd2ec2fb5861dc0 (patch)
treec7292d4c46e1b862678082f57f3be57caea400c3 /sys
parentmove tx and rx ring variables into their own structs. (diff)
downloadwireguard-openbsd-a24c48f087d1ce0520c70f60efd2ec2fb5861dc0.tar.xz
wireguard-openbsd-a24c48f087d1ce0520c70f60efd2ec2fb5861dc0.zip
make IS_ERR() and IS_ERR_OR_NULL() return bool
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/drm/include/linux/err.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/drm/include/linux/err.h b/sys/dev/pci/drm/include/linux/err.h
index c4fb448802e..a8d3bbbb442 100644
--- a/sys/dev/pci/drm/include/linux/err.h
+++ b/sys/dev/pci/drm/include/linux/err.h
@@ -20,13 +20,13 @@ PTR_ERR(const void *ptr)
return (long) ptr;
}
-static inline long
+static inline bool
IS_ERR(const void *ptr)
{
return IS_ERR_VALUE((unsigned long)ptr);
}
-static inline long
+static inline bool
IS_ERR_OR_NULL(const void *ptr)
{
return !ptr || IS_ERR_VALUE((unsigned long)ptr);