drop dead nested assignment (trivial)
authorStefan Reinauer <stepan@coresystems.de>
Sun, 26 Jul 2009 15:11:53 +0000 (15:11 +0000)
committerStefan Reinauer <stepan@openbios.org>
Sun, 26 Jul 2009 15:11:53 +0000 (15:11 +0000)
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4468 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

util/cbfstool/add.c

index 95b785298308a782448943be5709e2fcbaa9ab2b..f3be4fc0d740fbe1083bcab9f9683b340f7a03a3 100644 (file)
@@ -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;