summaryrefslogtreecommitdiff
path: root/src/radeon_glamor.c
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_glamor.c
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_glamor.c')
-rw-r--r--src/radeon_glamor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/radeon_glamor.c b/src/radeon_glamor.c
index fa634947..b649bd18 100644
--- a/src/radeon_glamor.c
+++ b/src/radeon_glamor.c
@@ -261,7 +261,7 @@ radeon_glamor_create_pixmap(ScreenPtr screen, int w, int h, int depth,
int stride;
priv = calloc(1, sizeof (struct radeon_pixmap));
- if (priv == NULL)
+ if (!priv)
goto fallback_pixmap;
priv->bo = radeon_alloc_pixmap_bo(scrn, w, h, depth, usage,