summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2020-06-14 05:26:05 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2020-06-14 05:26:05 +0000
commita810432b76963bccb577abda4ba15848b46e5912 (patch)
tree7dcc598d9d9306573a580413b8715731083c7a31
parent444234a1a6fdc1bb912f7e6674ba83376352ea9d (diff)
make IS_ERR() and IS_ERR_OR_NULL() return bool
-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);