summaryrefslogtreecommitdiffstats
path: root/src/intel/common/gen_decoder.c
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2018-10-20 18:00:08 +0100
committerEric Engestrom <[email protected]>2018-10-25 12:43:18 +0100
commitbb84fa146f2252f22999205a2904d8a948bffd3b (patch)
tree2e4773252d67da46590ec4a545fc10f6125043a9 /src/intel/common/gen_decoder.c
parent3d261cf77b35c56cc575ce9bb7909d2f8d920233 (diff)
util: use C99 declaration in the for-loop hash_table_foreach() macro
Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/intel/common/gen_decoder.c')
-rw-r--r--src/intel/common/gen_decoder.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/intel/common/gen_decoder.c b/src/intel/common/gen_decoder.c
index 5f6e7a0b808..f24d3ccf15d 100644
--- a/src/intel/common/gen_decoder.c
+++ b/src/intel/common/gen_decoder.c
@@ -702,8 +702,6 @@ void gen_spec_destroy(struct gen_spec *spec)
struct gen_group *
gen_spec_find_instruction(struct gen_spec *spec, const uint32_t *p)
{
- struct hash_entry *entry;
-
hash_table_foreach(spec->commands, entry) {
struct gen_group *command = entry->data;
uint32_t opcode = *p & command->opcode_mask;