util/cbmem: Initialize variable
There can be cases where "found" wasn't initialized, do so. Change-Id: Ifef8d61daa70e27ec39b7a8f3481d2316dfaa36e Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Found-by: Coverity Scan #1347334 Reviewed-on: https://review.coreboot.org/15969 Tested-by: build bot (Jenkins) Reviewed-by: Duncan Laurie <dlaurie@chromium.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
This commit is contained in:
parent
8260650cde
commit
be8f0fa2bb
|
@ -259,7 +259,7 @@ static struct lb_cbmem_ref parse_cbmem_ref(struct lb_cbmem_ref *cbmem_ref)
|
||||||
|
|
||||||
static int parse_cbtable(u64 address, size_t table_size, uint8_t abort_on_failure)
|
static int parse_cbtable(u64 address, size_t table_size, uint8_t abort_on_failure)
|
||||||
{
|
{
|
||||||
int i, found, ret = 0;
|
int i, found = 0, ret = 0;
|
||||||
void *buf;
|
void *buf;
|
||||||
|
|
||||||
debug("Looking for coreboot table at %" PRIx64 " %zd bytes.\n",
|
debug("Looking for coreboot table at %" PRIx64 " %zd bytes.\n",
|
||||||
|
|
Loading…
Reference in New Issue