diff options
author | Arthur Heymans <arthur@aheymans.xyz> | 2021-02-17 14:57:02 +0100 |
---|---|---|
committer | Arthur Heymans <arthur@aheymans.xyz> | 2021-03-16 15:32:41 +0000 |
commit | 9a5d6e958f4ff9fd35439bf6c6f37c852725592c (patch) | |
tree | 9677634e33efa4fbaa353c82cb5c3a968a537be1 /util | |
parent | 63813f9d7933f921f16619d53ae90a2e42f64fb4 (diff) | |
download | coreboot-9a5d6e958f4ff9fd35439bf6c6f37c852725592c.tar.xz |
util/cbfstool/ifittool: Remove dead code
The 'x' option is not set up in the getopt options.
Change-Id: Ib4aa10b0ea2a3f97e8d2439152b708613bcf43db
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/50923
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'util')
-rw-r--r-- | util/cbfstool/ifittool.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/util/cbfstool/ifittool.c b/util/cbfstool/ifittool.c index 7e99d4fd43..10ed2eb012 100644 --- a/util/cbfstool/ifittool.c +++ b/util/cbfstool/ifittool.c @@ -127,7 +127,6 @@ enum fit_operation { NO_OP = 0, ADD_CBFS_OP, ADD_REGI_OP, - ADD_ADDR_OP, DEL_OP }; @@ -182,15 +181,6 @@ int main(int argc, char *argv[]) } op = ADD_REGI_OP; break; - case 'x': - if (op != NO_OP) { - ERROR("specified multiple actions at once\n"); - usage(argv[0]); - return 1; - } - op = ADD_ADDR_OP; - addr = atoll(optarg); - break; case 'c': clear_table = true; break; @@ -262,17 +252,6 @@ int main(int argc, char *argv[]) return 1; } } - if (op == ADD_ADDR_OP) { - if (fit_type == 0) { - ERROR("Adding FIT entry, but no type given\n"); - usage(argv[0]); - return 1; - } else if (max_table_size == 0) { - ERROR("Maximum table size not given\n"); - usage(argv[0]); - return 1; - } - } if (!region_name) { ERROR("Region not given\n"); @@ -373,15 +352,6 @@ int main(int argc, char *argv[]) } break; } - case ADD_ADDR_OP: - { - if (fit_add_entry(fit, addr, 0, fit_type, max_table_size)) { - partitioned_file_close(image_file); - ERROR("Adding type %u FIT entry\n", fit_type); - return 1; - } - } - break; case DEL_OP: { if (fit_delete_entry(fit, table_entry)) { |