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_exa_render.c | |
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_exa_render.c')
-rw-r--r-- | src/radeon_exa_render.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/radeon_exa_render.c b/src/radeon_exa_render.c index 9510f7f4..c61d83f4 100644 --- a/src/radeon_exa_render.c +++ b/src/radeon_exa_render.c @@ -630,7 +630,7 @@ static Bool R100PrepareComposite(int op, return FALSE; pp_cntl = RADEON_TEX_0_ENABLE | RADEON_TEX_BLEND_0_ENABLE; - if (pMask != NULL) { + if (pMask) { if (!R100TextureSetup(pMaskPicture, pMask, 1)) return FALSE; pp_cntl |= RADEON_TEX_1_ENABLE; @@ -992,7 +992,7 @@ static Bool R200PrepareComposite(int op, PicturePtr pSrcPicture, return FALSE; pp_cntl = RADEON_TEX_0_ENABLE | RADEON_TEX_BLEND_0_ENABLE; - if (pMask != NULL) { + if (pMask) { if (!R200TextureSetup(pMaskPicture, pMask, 1)) return FALSE; pp_cntl |= RADEON_TEX_1_ENABLE; @@ -1484,7 +1484,7 @@ static Bool R300PrepareComposite(int op, PicturePtr pSrcPicture, return FALSE; txenable = R300_TEX_0_ENABLE; - if (pMask != NULL) { + if (pMask) { if (!R300TextureSetup(pMaskPicture, pMask, 1)) return FALSE; txenable |= R300_TEX_1_ENABLE; |