intel: decoder: make the field iterator use more natural
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Tue, 1 May 2018 21:12:56 +0000 (22:12 +0100)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Wed, 2 May 2018 16:10:37 +0000 (17:10 +0100)
commit3c416a50d8d203115012363b13a4083f1c6de069
treeeb265c3b9ae0e677fa89f3a3f97506c812bae539
parent967aabca06fc48ee18e1f4fc534483d45bdcaa70
intel: decoder: make the field iterator use more natural

while (iter_next()) { ... }

instead of

do { ... } while (iter_next());

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/intel/common/gen_decoder.c
src/intel/tools/gen_batch_decoder.c