[Mesa-dev] [PATCH 12/33] intel: decoder: simplify creation of struct when 0-allocated

Lionel Landwerlin lionel.g.landwerlin at intel.com
Mon Oct 30 16:58:25 UTC 2017


Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
---
 src/intel/common/gen_decoder.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/src/intel/common/gen_decoder.c b/src/intel/common/gen_decoder.c
index 0bf705fa9e1..6a6a1f0aca4 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;
 }
 
-- 
2.15.0.rc2



More information about the mesa-dev mailing list