diff options
author | Stefan Reinauer <stepan@coresystems.de> | 2009-07-26 15:11:53 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@openbios.org> | 2009-07-26 15:11:53 +0000 |
commit | 4551b4961abb4ef6902a4dd7212300a2547cca26 (patch) | |
tree | b84966184ca6c29555a4d6fd716abadb024553eb /util/cbfstool/add.c | |
parent | fc4226c5639031bd9d27b6a1026b05a1785b11fd (diff) | |
download | coreboot-4551b4961abb4ef6902a4dd7212300a2547cca26.tar.xz |
drop dead nested assignment (trivial)
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
Diffstat (limited to 'util/cbfstool/add.c')
-rw-r--r-- | util/cbfstool/add.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/util/cbfstool/add.c b/util/cbfstool/add.c index 95b7852983..f3be4fc0d7 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; |