diff options
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_vs_variant.c')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_vs_variant.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/draw/draw_vs_variant.c b/src/gallium/auxiliary/draw/draw_vs_variant.c index ce3a608c1d1..af36a86674d 100644 --- a/src/gallium/auxiliary/draw/draw_vs_variant.c +++ b/src/gallium/auxiliary/draw/draw_vs_variant.c @@ -302,7 +302,7 @@ draw_vs_create_variant_generic( struct draw_vertex_shader *vs, struct translate_key fetch, emit; struct draw_vs_variant_generic *vsvg = CALLOC_STRUCT( draw_vs_variant_generic ); - if (vsvg == NULL) + if (!vsvg) return NULL; vsvg->base.key = *key; |