summaryrefslogtreecommitdiffstats
path: root/src/glsl/nir/nir_dominance.c
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2015-02-10 11:23:55 -0800
committerMatt Turner <mattst88@gmail.com>2015-02-10 17:48:42 -0800
commita9065cef4879509c3dc96a5195f785647576f409 (patch)
tree783b6de55068522383b63446032948fa32df3a1e /src/glsl/nir/nir_dominance.c
parentbb1e0071572d491be37d7dfb3841f48af69f6ede (diff)
nir: Remove casts from void*.
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
Diffstat (limited to 'src/glsl/nir/nir_dominance.c')
-rw-r--r--src/glsl/nir/nir_dominance.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/glsl/nir/nir_dominance.c b/src/glsl/nir/nir_dominance.c
index 67fdcc69725..4927a292882 100644
--- a/src/glsl/nir/nir_dominance.c
+++ b/src/glsl/nir/nir_dominance.c
@@ -215,7 +215,7 @@ nir_calc_dominance(nir_shader *shader)
static bool
dump_block_dom(nir_block *block, void *state)
{
- FILE *fp = (FILE *) state;
+ FILE *fp = state;
if (block->imm_dom)
fprintf(fp, "\t%u -> %u\n", block->imm_dom->index, block->index);
return true;
@@ -241,7 +241,7 @@ nir_dump_dom_tree(nir_shader *shader, FILE *fp)
static bool
dump_block_dom_frontier(nir_block *block, void *state)
{
- FILE *fp = (FILE *) state;
+ FILE *fp = state;
fprintf(fp, "DF(%u) = {", block->index);
struct set_entry *entry;
@@ -271,7 +271,7 @@ nir_dump_dom_frontier(nir_shader *shader, FILE *fp)
static bool
dump_block_succs(nir_block *block, void *state)
{
- FILE *fp = (FILE *) state;
+ FILE *fp = state;
if (block->successors[0])
fprintf(fp, "\t%u -> %u\n", block->index, block->successors[0]->index);
if (block->successors[1])