summaryrefslogtreecommitdiff
path: root/lib/mesa/src/gallium/auxiliary/translate/translate_generic.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mesa/src/gallium/auxiliary/translate/translate_generic.c')
-rw-r--r--lib/mesa/src/gallium/auxiliary/translate/translate_generic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mesa/src/gallium/auxiliary/translate/translate_generic.c b/lib/mesa/src/gallium/auxiliary/translate/translate_generic.c
index 45eb63231..3b460e11c 100644
--- a/lib/mesa/src/gallium/auxiliary/translate/translate_generic.c
+++ b/lib/mesa/src/gallium/auxiliary/translate/translate_generic.c
@@ -772,7 +772,7 @@ struct translate *translate_generic_create( const struct translate_key *key )
struct translate_generic *tg = CALLOC_STRUCT(translate_generic);
unsigned i;
- if (tg == NULL)
+ if (!tg)
return NULL;
assert(key->nr_elements <= TRANSLATE_MAX_ATTRIBS);