mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-26 09:10:31 +01:00
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>
This commit is contained in:
parent
eb00b8b18c
commit
1cf1591abd
1 changed files with 0 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue