diff options
author | Matt Turner <[email protected]> | 2014-09-21 21:13:33 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2014-12-08 17:02:19 -0800 |
commit | 9019e5e19532fe214fc6e45b9ee1f60bbe332456 (patch) | |
tree | c382866b78653aea157f085c9cdb8bd3695798e8 /src/gallium/state_trackers/nine/vertexshader9.c | |
parent | cae7a2a0319e31eef0975edafc730efd3bd2c8d4 (diff) |
Remove useless checks for NULL before freeing
See commits 5067506e and b6109de3 for the Coccinelle script.
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/nine/vertexshader9.c')
-rw-r--r-- | src/gallium/state_trackers/nine/vertexshader9.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/nine/vertexshader9.c b/src/gallium/state_trackers/nine/vertexshader9.c index d8507b5cccc..3d40d60c062 100644 --- a/src/gallium/state_trackers/nine/vertexshader9.c +++ b/src/gallium/state_trackers/nine/vertexshader9.c @@ -105,8 +105,7 @@ NineVertexShader9_dtor( struct NineVertexShader9 *This ) } nine_shader_variants_free(&This->variant); - if (This->byte_code.tokens) - FREE((void *)This->byte_code.tokens); /* const_cast */ + FREE((void *)This->byte_code.tokens); /* const_cast */ FREE(This->lconstf.data); FREE(This->lconstf.ranges); |