From: Lionel Landwerlin Date: Sat, 23 Sep 2017 23:43:09 +0000 (+0100) Subject: intel: decoder: simplify creation of struct when 0-allocated X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1cf1591abd06a79f235d34fe44be2cab64629ca7;p=mesa.git intel: decoder: simplify creation of struct when 0-allocated Signed-off-by: Lionel Landwerlin Reviewed-by: Scott D Phillips --- diff --git a/src/intel/common/gen_decoder.c b/src/intel/common/gen_decoder.c index f3b2194da96..5b234d254a7 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; }