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:
parent
137f41f2d4
commit
5fa756cc97
|
@ -336,7 +336,6 @@ int main(int argc, char *argv[])
|
||||||
case ADD_REGI_OP:
|
case ADD_REGI_OP:
|
||||||
{
|
{
|
||||||
struct buffer region;
|
struct buffer region;
|
||||||
addr = 0;
|
|
||||||
|
|
||||||
if (partitioned_file_read_region(®ion, image_file, name)) {
|
if (partitioned_file_read_region(®ion, image_file, name)) {
|
||||||
addr = -convert_to_from_top_aligned(®ion, 0);
|
addr = -convert_to_from_top_aligned(®ion, 0);
|
||||||
|
|
Loading…
Reference in New Issue