acpi: Fix Coverity Scan report
Fix the issue that return value "r" in line 534 will get overwritten problem. BUG=CID 1445995 TEST=Build sucessful and boot up in QEMU Signed-off-by: Lijian Zhao <lijian.zhao@intel.com> Change-Id: Icf760b142cfecfed7c929c15ad190ac74df027b1 Reviewed-on: https://review.coreboot.org/c/coreboot/+/50352 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Francois Toguo Fotso <francois.toguo.fotso@intel.com> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
This commit is contained in:
parent
f7a7e65aa4
commit
94e4961a01
|
@ -534,7 +534,7 @@ acpi_generic_error_status_t *bert_new_event(guid_t *guid)
|
|||
r = bert_append_genproc(status);
|
||||
else if (!guidcmp(guid, &CPER_SEC_PROC_GENERIC_GUID))
|
||||
r = bert_append_ia32x64(status);
|
||||
if (!guidcmp(guid, &CPER_SEC_FW_ERR_REC_REF_GUID))
|
||||
else if (!guidcmp(guid, &CPER_SEC_FW_ERR_REC_REF_GUID))
|
||||
r = bert_append_fw_err(status);
|
||||
/* else if other types not implemented */
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue