summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorPaul Menzel <paulepanter@users.sourceforge.net>2014-08-04 08:25:05 +0200
committerPatrick Georgi <patrick@georgi-clan.de>2014-08-04 20:57:10 +0200
commit80fd01d2cc44a7a4077b5df25d5d09917e5ae04a (patch)
tree844aaed46eacc643ef9b273cb8445c1c09f3bba8 /util
parent2b48b65b1980c4edb6391e4ccf6b1bd8313be944 (diff)
downloadcoreboot-80fd01d2cc44a7a4077b5df25d5d09917e5ae04a.tar.xz
util/sconfig/main.c: Remove assigned but unused variable `link`
Cppcheck 1.65 report the style style issue below. [main.c:434]: (style) Variable 'link' is assigned a value that is never used. So remove the variable `link` as it is not needed. Change-Id: Ib77b80b74a70985a76eaa3247c4a43832ef23a59 Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-on: http://review.coreboot.org/6488 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <patrick@georgi-clan.de> Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Diffstat (limited to 'util')
-rw-r--r--util/sconfig/main.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/util/sconfig/main.c b/util/sconfig/main.c
index 44d491161d..c439951d0d 100644
--- a/util/sconfig/main.c
+++ b/util/sconfig/main.c
@@ -431,7 +431,6 @@ static void pass1(FILE *fil, struct device *ptr)
if (ptr->rescnt > 0) {
fprintf(fil, "\t.resource_list = &%s_res[0],\n", ptr->name);
}
- int link = 0;
if (ptr->children || ptr->multidev)
fprintf(fil, "\t.link_list = &%s_links[0],\n", ptr->name);
else