summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>2017-09-24 00:43:09 +0100
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>2017-11-01 13:49:12 +0000
commit1cf1591abd06a79f235d34fe44be2cab64629ca7 (patch)
treede08e7093bff34bd6b89a8a320a8d738f263e4a3
parenteb00b8b18c63f683ba6fd0f43848365dd84e5a96 (diff)
intel: decoder: simplify creation of struct when 0-allocated
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Scott D Phillips <scott.d.phillips@intel.com>
-rw-r--r--src/intel/common/gen_decoder.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/intel/common/gen_decoder.c b/src/intel/common/gen_decoder.c
index f3b2194da9..5b234d254a 100644
--- a/src/intel/common/gen_decoder.c
+++ b/src/intel/common/gen_decoder.c
@@ -161,8 +161,6 @@ create_group(struct parser_context *ctx,
group->name = ralloc_strdup(group, name);
group->spec = ctx->spec;
- group->group_offset = 0;
- group->group_count = 0;
group->variable = false;
if (parent) {
@@ -186,8 +184,6 @@ create_enum(struct parser_context *ctx, const char *name, const char **atts)
if (name)
e->name = ralloc_strdup(e, name);
- e->nvalues = 0;
-
return e;
}