summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/translate/translate_cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/auxiliary/translate/translate_cache.c')
-rw-r--r--src/gallium/auxiliary/translate/translate_cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/translate/translate_cache.c b/src/gallium/auxiliary/translate/translate_cache.c
index 2bed02a454b..8aad7cdfb2b 100644
--- a/src/gallium/auxiliary/translate/translate_cache.c
+++ b/src/gallium/auxiliary/translate/translate_cache.c
@@ -40,7 +40,7 @@ struct translate_cache {
struct translate_cache * translate_cache_create( void )
{
struct translate_cache *cache = MALLOC_STRUCT(translate_cache);
- if (cache == NULL) {
+ if (!cache) {
return NULL;
}