drivers/ipmi/ipmi_kcs_ops.c: accommodate BMC revision being 0
BMC major/minor revision may be 0. Get the value directly from BMC without checking to accommodate such situation. Signed-off-by: Tim Chu <Tim.Chu@quantatw.com> Signed-off-by: Jonathan Zhang <jonzhang@meta.com> Change-Id: I0e08c6d02de8f6efceb69b6d6cebad9d61cfd20e Reviewed-on: https://review.coreboot.org/c/coreboot/+/68685 Reviewed-by: Shuming Chu (Shuming) <s1218944@gmail.com> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin Roth <martin.roth@amd.corp-partner.google.com>
This commit is contained in:
parent
cb3eaf680a
commit
9f9bfdd5a1
|
@ -259,14 +259,8 @@ static void ipmi_ssdt(const struct device *dev)
|
|||
|
||||
void ipmi_bmc_version(uint8_t *ipmi_bmc_major_revision, uint8_t *ipmi_bmc_minor_revision)
|
||||
{
|
||||
if (!bmc_revision_major || !bmc_revision_minor) {
|
||||
printk(BIOS_ERR, "IPMI: BMC revision missing\n");
|
||||
*ipmi_bmc_major_revision = 0;
|
||||
*ipmi_bmc_minor_revision = 0;
|
||||
} else {
|
||||
*ipmi_bmc_major_revision = bmc_revision_major;
|
||||
*ipmi_bmc_minor_revision = bmc_revision_minor;
|
||||
}
|
||||
*ipmi_bmc_major_revision = bmc_revision_major;
|
||||
*ipmi_bmc_minor_revision = bmc_revision_minor;
|
||||
}
|
||||
|
||||
#if CONFIG(GENERATE_SMBIOS_TABLES)
|
||||
|
|
Loading…
Reference in New Issue