From 7358643e0af6c436906972c0b6a193effafc4f8c Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Sat, 18 Jan 2014 16:23:32 +0100 Subject: sconfig: don't "const" structs twice It's useless and makes clang unhappy. Change-Id: If256b99aebabd87df30a3a078c5804330b82989b Signed-off-by: Patrick Georgi Reviewed-on: http://review.coreboot.org/4713 Tested-by: build bot (Jenkins) Reviewed-by: Alexandru Gagniuc --- util/sconfig/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'util') 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); } } -- cgit v1.2.3