diff options
author | Felix Held <felix-coreboot@felixheld.de> | 2020-11-20 20:08:42 +0100 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2020-11-21 19:40:33 +0000 |
commit | ea3417b5eb7de9d1c0a41724c0281fa7d30a97f8 (patch) | |
tree | bb05ca835e6a86a4a0edd9ade9debb8b93c082e3 /util | |
parent | ea3402213ff4b80bf8ebfb8502e49aa071cf3d74 (diff) |
util/amdfwtool: add missing zero-initialization for local variable
Change-Id: Ib156b16b874f74f58bd816071db3a7acf33c5aaf
Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/47817
Reviewed-by: Furquan Shaikh <furquan@google.com>
Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'util')
-rw-r--r-- | util/amdfwtool/data_parse.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util/amdfwtool/data_parse.c b/util/amdfwtool/data_parse.c index c2ce32befb..21e7317e22 100644 --- a/util/amdfwtool/data_parse.c +++ b/util/amdfwtool/data_parse.c @@ -224,7 +224,8 @@ static uint8_t find_register_fw_filename_bios_dir(char *fw_name, char *filename, { amd_bios_type fw_type = AMD_BIOS_INVALID; amd_bios_entry *bhd_tableptr; - uint8_t subprog, instance = 0; + uint8_t subprog = 0; + uint8_t instance = 0; (void) (cb_config); /* Remove warning and reserved for future. */ |