diff options
author | Matt Turner <mattst88@gmail.com> | 2014-09-21 21:13:33 -0700 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2014-12-08 17:02:19 -0800 |
commit | 9019e5e19532fe214fc6e45b9ee1f60bbe332456 (patch) | |
tree | c382866b78653aea157f085c9cdb8bd3695798e8 /src/gallium/drivers/r600 | |
parent | cae7a2a0319e31eef0975edafc730efd3bd2c8d4 (diff) | |
download | external_mesa3d-9019e5e19532fe214fc6e45b9ee1f60bbe332456.zip external_mesa3d-9019e5e19532fe214fc6e45b9ee1f60bbe332456.tar.gz external_mesa3d-9019e5e19532fe214fc6e45b9ee1f60bbe332456.tar.bz2 |
Remove useless checks for NULL before freeing
See commits 5067506e and b6109de3 for the Coccinelle script.
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Diffstat (limited to 'src/gallium/drivers/r600')
-rw-r--r-- | src/gallium/drivers/r600/r600_isa.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/gallium/drivers/r600/r600_isa.c b/src/gallium/drivers/r600/r600_isa.c index 81544ca..4ea7103 100644 --- a/src/gallium/drivers/r600/r600_isa.c +++ b/src/gallium/drivers/r600/r600_isa.c @@ -89,14 +89,10 @@ int r600_isa_destroy(struct r600_isa *isa) { if (!isa) return 0; - if (isa->alu_op2_map) - free(isa->alu_op2_map); - if (isa->alu_op3_map) - free(isa->alu_op3_map); - if (isa->fetch_map) - free(isa->fetch_map); - if (isa->cf_map) - free(isa->cf_map); + free(isa->alu_op2_map); + free(isa->alu_op3_map); + free(isa->fetch_map); + free(isa->cf_map); free(isa); return 0; |