summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Garber <jgarber1@ualberta.ca>2019-07-31 12:23:51 -0600
committerPatrick Georgi <pgeorgi@google.com>2019-08-20 15:20:30 +0000
commit5fa756cc97de1ed30ac3fd4d5ddb85f079efe521 (patch)
tree98b47198b59138f2a931e4a0302dd3bc2fbf83d4
parent137f41f2d405e050f539cf06b1e29b8ee77915fa (diff)
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>
-rw-r--r--util/cbfstool/ifittool.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/util/cbfstool/ifittool.c b/util/cbfstool/ifittool.c
index 3b16c3fcf0..dce37c8084 100644
--- a/util/cbfstool/ifittool.c
+++ b/util/cbfstool/ifittool.c
@@ -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);