util/cbfstool: Remove unused assignment

This variable is overwritten on one branch of the next if statement, and
the other branch returns, so this assignment does nothing.

Change-Id: I63737929d47c882bbcf637182bc8bf73c19daa9f
Signed-off-by: Jacob Garber <jgarber1@ualberta.ca>
Found-by: scan-build 8.0.0
Reviewed-on: https://review.coreboot.org/c/coreboot/+/34644
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
This commit is contained in:
Jacob Garber 2019-07-31 12:23:51 -06:00 committed by Patrick Georgi
parent 137f41f2d4
commit 5fa756cc97
1 changed files with 0 additions and 1 deletions

View File

@ -336,7 +336,6 @@ int main(int argc, char *argv[])
case ADD_REGI_OP:
{
struct buffer region;
addr = 0;
if (partitioned_file_read_region(&region, image_file, name)) {
addr = -convert_to_from_top_aligned(&region, 0);