diff options
-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; |