soc/amd/common/block/psp/psp_gen2: drop unneeded variable initialization
Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: I9a3ec9565e660d5fad61c7e73d56f2f821e152aa Reviewed-on: https://review.coreboot.org/c/coreboot/+/63967 Reviewed-by: Raul Rangel <rrangel@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
cc07fa5d0e
commit
1333bcfe4a
|
@ -34,7 +34,7 @@ static uintptr_t soc_get_psp_base_address(void)
|
|||
|
||||
static u16 rd_mbox_sts(uintptr_t psp_mmio)
|
||||
{
|
||||
union pspv2_mbox_command tmp = { .val = 0 };
|
||||
union pspv2_mbox_command tmp;
|
||||
|
||||
tmp.val = read32p(psp_mmio + PSP_MAILBOX_COMMAND_OFFSET);
|
||||
return tmp.fields.mbox_status;
|
||||
|
@ -51,7 +51,7 @@ static void wr_mbox_cmd(uintptr_t psp_mmio, u8 cmd)
|
|||
|
||||
static u8 rd_mbox_recovery(uintptr_t psp_mmio)
|
||||
{
|
||||
union pspv2_mbox_command tmp = { .val = 0 };
|
||||
union pspv2_mbox_command tmp;
|
||||
|
||||
tmp.val = read32p(psp_mmio + PSP_MAILBOX_COMMAND_OFFSET);
|
||||
return !!tmp.fields.recovery;
|
||||
|
|
Loading…
Reference in New Issue