util/nvramtool: Remove 2nd initialization

'result' is already defined as 'unsigned long long result = 0;' so no
need to re-write 'result = 0;'.

Change-Id: Ie897453fb5e7b09af755ce8d61ee8e80943ffc1c
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/40290
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
This commit is contained in:
Elyes HAOUAS 2020-04-09 17:46:28 +02:00 committed by Nico Huber
parent 2f8ba69b0e
commit 7eed98ac88
1 changed files with 0 additions and 1 deletions

View File

@ -121,7 +121,6 @@ unsigned long long cmos_read(const cmos_entry_t * e)
unsigned char value; unsigned char value;
assert(!verify_cmos_op(bit, length, e->config)); assert(!verify_cmos_op(bit, length, e->config));
result = 0;
if (e->config == CMOS_ENTRY_STRING) { if (e->config == CMOS_ENTRY_STRING) {
int strsz = (length + 7) / 8 + 1; int strsz = (length + 7) / 8 + 1;