drivers/ipmi/ocp: Fix building with clang

Fix the following warning:
error: use of logical '&&' with constant operand
[-Werror,-Wconstant-logical-operand]

Change-Id: I9a2f03a0e05088a780ce1e829859421b461032ca
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/69437
Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin L Roth <gaumless@gmail.com>
This commit is contained in:
Arthur Heymans 2022-11-10 14:51:49 +01:00 committed by Martin L Roth
parent 9df0fee8fa
commit 852ab75005
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ __weak uint8_t get_blade_id(void)
{ {
struct ipmi_config_rsp rsp = {.slot_id = UINT8_MAX}; struct ipmi_config_rsp rsp = {.slot_id = UINT8_MAX};
if (CONFIG(IPMI_KCS) && CONFIG_BMC_KCS_BASE) { if (CONFIG(IPMI_KCS) && CONFIG_BMC_KCS_BASE != 0) {
if (ipmi_get_board_config(CONFIG_BMC_KCS_BASE, &rsp) != CB_SUCCESS) if (ipmi_get_board_config(CONFIG_BMC_KCS_BASE, &rsp) != CB_SUCCESS)
return UINT8_MAX; return UINT8_MAX;
} }