summaryrefslogtreecommitdiff
path: root/src/amdgpu_glamor.c
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2018-05-16 16:49:20 +0200
committerMichel Dänzer <michel@daenzer.net>2018-05-16 16:49:20 +0200
commite8e688f3852fb06b0c34ed5bce47c9493bcd1613 (patch)
treee57f99be5862d05a5b83d0f8187ccb4b5fcc69e9 /src/amdgpu_glamor.c
parent103bd6f44cc5f1a6cd6cc9a5cb34d0419c4cece9 (diff)
Replace 'foo == NULL' with '!foo'
Shorter and sweeter. :) Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src/amdgpu_glamor.c')
-rw-r--r--src/amdgpu_glamor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amdgpu_glamor.c b/src/amdgpu_glamor.c
index 6efc372..44cdbcf 100644
--- a/src/amdgpu_glamor.c
+++ b/src/amdgpu_glamor.c
@@ -216,7 +216,7 @@ amdgpu_glamor_create_pixmap(ScreenPtr screen, int w, int h, int depth,
int stride;
priv = calloc(1, sizeof(struct amdgpu_pixmap));
- if (priv == NULL)
+ if (!priv)
goto fallback_pixmap;
priv->bo = amdgpu_alloc_pixmap_bo(scrn, w, h, depth, usage,