summaryrefslogtreecommitdiff
path: root/src/radeon.h
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2018-07-11 18:42:58 +0200
committerMichel Dänzer <michel@daenzer.net>2018-07-12 18:08:34 +0200
commit4050b0ad51b1c65945c6474981d1228888738cd4 (patch)
tree4047304beafbede53d2c3e54008f0464130fd0fd /src/radeon.h
parentcf8bc72e3473cef2b511e2c938eb00aca82de909 (diff)
Replace 'foo == NULL' with '!foo'
Shorter and sweeter. :) (Ported from amdgpu commit e8e688f3852fb06b0c34ed5bce47c9493bcd1613) Acked-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src/radeon.h')
-rw-r--r--src/radeon.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/radeon.h b/src/radeon.h
index 2bcfa41b..450c69aa 100644
--- a/src/radeon.h
+++ b/src/radeon.h
@@ -726,7 +726,7 @@ static inline Bool radeon_set_pixmap_bo(PixmapPtr pPix, struct radeon_buffer *bo
struct radeon_pixmap *priv;
priv = radeon_get_pixmap_private(pPix);
- if (priv == NULL && bo == NULL)
+ if (!priv && !bo)
return TRUE;
if (priv) {