summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2014-09-21 21:13:33 -0700
committerMatt Turner <[email protected]>2014-12-08 17:02:19 -0800
commit9019e5e19532fe214fc6e45b9ee1f60bbe332456 (patch)
treec382866b78653aea157f085c9cdb8bd3695798e8 /src/gallium/drivers/r600
parentcae7a2a0319e31eef0975edafc730efd3bd2c8d4 (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/drivers/r600')
-rw-r--r--src/gallium/drivers/r600/r600_isa.c12
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 81544ca3dd1..4ea71035c79 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;