diff options
Diffstat (limited to 'src/radeon_glamor.c')
-rw-r--r-- | src/radeon_glamor.c | 2 |
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, |