[coreboot] [v2] r4468 - trunk/coreboot-v2/util/cbfstool

svn at coreboot.org svn at coreboot.org
Sun Jul 26 17:11:54 CEST 2009


Author: stepan
Date: 2009-07-26 17:11:53 +0200 (Sun, 26 Jul 2009)
New Revision: 4468

Modified:
   trunk/coreboot-v2/util/cbfstool/add.c
Log:
drop dead nested assignment (trivial)

Signed-off-by: Stefan Reinauer <stepan at coresystems.de>
Acked-by: Stefan Reinauer <stepan at coresystems.de>



Modified: trunk/coreboot-v2/util/cbfstool/add.c
===================================================================
--- trunk/coreboot-v2/util/cbfstool/add.c	2009-07-26 15:05:40 UTC (rev 4467)
+++ trunk/coreboot-v2/util/cbfstool/add.c	2009-07-26 15:11:53 UTC (rev 4468)
@@ -254,14 +254,12 @@
 		return -1;
 	}
 
-	int component_type;
-
 	/* There are two ways to specify the type - a string or a number */
 
 	if (isdigit(*(argv[2])))
 		type = strtoul(argv[2], 0, 0);
 	else {
-		switch( component_type = select_component_type(argv[2])) {
+		switch(select_component_type(argv[2])) {
 			case 0:
 				type = CBFS_COMPONENT_STAGE;
 				break;





More information about the coreboot mailing list