From 80fd01d2cc44a7a4077b5df25d5d09917e5ae04a Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Mon, 4 Aug 2014 08:25:05 +0200 Subject: [PATCH] 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 Reviewed-on: http://review.coreboot.org/6488 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi Reviewed-by: Edward O'Callaghan --- util/sconfig/main.c | 1 - 1 file changed, 1 deletion(-) 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