From: Stefan Reinauer Date: Sun, 26 Jul 2009 15:11:53 +0000 (+0000) Subject: drop dead nested assignment (trivial) X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=coreboot.git;a=commitdiff_plain;h=4551b4961abb4ef6902a4dd7212300a2547cca26 drop dead nested assignment (trivial) Signed-off-by: Stefan Reinauer Acked-by: Stefan Reinauer git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4468 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- diff --git a/util/cbfstool/add.c b/util/cbfstool/add.c index 95b785298..f3be4fc0d 100644 --- a/util/cbfstool/add.c +++ b/util/cbfstool/add.c @@ -254,14 +254,12 @@ int add_handler(struct rom *rom, int argc, char **argv) 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;