sconfig: don't "const" structs twice
It's useless and makes clang unhappy. Change-Id: If256b99aebabd87df30a3a078c5804330b82989b Signed-off-by: Patrick Georgi <patrick@georgi-clan.de> Reviewed-on: http://review.coreboot.org/4713 Tested-by: build bot (Jenkins) Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
This commit is contained in:
parent
484a5bfffe
commit
7358643e0a
|
@ -500,7 +500,7 @@ static void pass1(FILE *fil, struct device *ptr)
|
||||||
}
|
}
|
||||||
if ((ptr->type == chip) && (ptr->chiph_exists)) {
|
if ((ptr->type == chip) && (ptr->chiph_exists)) {
|
||||||
if (ptr->reg) {
|
if (ptr->reg) {
|
||||||
fprintf(fil, "ROMSTAGE_CONST struct %s_config ROMSTAGE_CONST %s_info_%d = {\n",
|
fprintf(fil, "ROMSTAGE_CONST struct %s_config %s_info_%d = {\n",
|
||||||
ptr->name_underscore, ptr->name_underscore,
|
ptr->name_underscore, ptr->name_underscore,
|
||||||
ptr->id);
|
ptr->id);
|
||||||
struct reg *r = ptr->reg;
|
struct reg *r = ptr->reg;
|
||||||
|
@ -510,7 +510,7 @@ static void pass1(FILE *fil, struct device *ptr)
|
||||||
}
|
}
|
||||||
fprintf(fil, "};\n\n");
|
fprintf(fil, "};\n\n");
|
||||||
} else {
|
} else {
|
||||||
fprintf(fil, "ROMSTAGE_CONST struct %s_config ROMSTAGE_CONST %s_info_%d = { };\n",
|
fprintf(fil, "ROMSTAGE_CONST struct %s_config %s_info_%d = { };\n",
|
||||||
ptr->name_underscore, ptr->name_underscore, ptr->id);
|
ptr->name_underscore, ptr->name_underscore, ptr->id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue