summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Georgi <patrick@georgi-clan.de>2014-01-18 16:23:32 +0100
committerPatrick Georgi <patrick@georgi-clan.de>2014-01-20 12:59:27 +0100
commit7358643e0af6c436906972c0b6a193effafc4f8c (patch)
tree72887ebaa775a28b02afece33dd0ac22265c9092
parent484a5bfffeed234f998ededbc3a7ec927bc2569b (diff)
downloadcoreboot-7358643e0af6c436906972c0b6a193effafc4f8c.tar.xz
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>
-rw-r--r--util/sconfig/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/sconfig/main.c b/util/sconfig/main.c
index 03ba1ef60a..74193e6740 100644
--- a/util/sconfig/main.c
+++ b/util/sconfig/main.c
@@ -500,7 +500,7 @@ static void pass1(FILE *fil, struct device *ptr)
}
if ((ptr->type == chip) && (ptr->chiph_exists)) {
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->id);
struct reg *r = ptr->reg;
@@ -510,7 +510,7 @@ static void pass1(FILE *fil, struct device *ptr)
}
fprintf(fil, "};\n\n");
} 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);
}
}