From bb84fa146f2252f22999205a2904d8a948bffd3b Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Sat, 20 Oct 2018 18:00:08 +0100 Subject: util: use C99 declaration in the for-loop hash_table_foreach() macro Signed-off-by: Eric Engestrom Reviewed-by: Timothy Arceri --- src/intel/common/gen_decoder.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/intel/common/gen_decoder.c') 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; -- cgit v1.2.3