From 7eed98ac88f15b6b81695275858da7cd5c8d7a98 Mon Sep 17 00:00:00 2001 From: Elyes HAOUAS Date: Thu, 9 Apr 2020 17:46:28 +0200 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/40290 Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons Reviewed-by: Paul Menzel --- util/nvramtool/cmos_lowlevel.c | 1 - 1 file changed, 1 deletion(-) (limited to 'util/nvramtool') diff --git a/util/nvramtool/cmos_lowlevel.c b/util/nvramtool/cmos_lowlevel.c index eadda62ce8..32406ecd1a 100644 --- a/util/nvramtool/cmos_lowlevel.c +++ b/util/nvramtool/cmos_lowlevel.c @@ -121,7 +121,6 @@ unsigned long long cmos_read(const cmos_entry_t * e) unsigned char value; assert(!verify_cmos_op(bit, length, e->config)); - result = 0; if (e->config == CMOS_ENTRY_STRING) { int strsz = (length + 7) / 8 + 1; -- cgit v1.2.3