diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2018-07-11 18:42:58 +0200 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2018-07-12 18:08:34 +0200 |
commit | 4050b0ad51b1c65945c6474981d1228888738cd4 (patch) | |
tree | 4047304beafbede53d2c3e54008f0464130fd0fd /src/radeon.h | |
parent | cf8bc72e3473cef2b511e2c938eb00aca82de909 (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.h | 2 |
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) { |