diff options
author | 2020-06-14 05:26:04 +0000 | |
---|---|---|
committer | 2020-06-14 05:26:04 +0000 | |
commit | a24c48f087d1ce0520c70f60efd2ec2fb5861dc0 (patch) | |
tree | c7292d4c46e1b862678082f57f3be57caea400c3 | |
parent | move tx and rx ring variables into their own structs. (diff) | |
download | wireguard-openbsd-a24c48f087d1ce0520c70f60efd2ec2fb5861dc0.tar.xz wireguard-openbsd-a24c48f087d1ce0520c70f60efd2ec2fb5861dc0.zip |
make IS_ERR() and IS_ERR_OR_NULL() return bool
-rw-r--r-- | sys/dev/pci/drm/include/linux/err.h | 4 |
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); |