diff options
author | Felix Held <felix-coreboot@felixheld.de> | 2022-04-29 21:02:52 +0200 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2022-05-02 13:57:23 +0000 |
commit | 1333bcfe4a61152f45aa0891c7eea9299ebc09e6 (patch) | |
tree | c5b8b79774942b60e8cc43af52bbdae286b3408d /src | |
parent | cc07fa5d0e3b4ab1cf78ed88c4f344332fe0341f (diff) |
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/soc/amd/common/block/psp/psp_gen2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/soc/amd/common/block/psp/psp_gen2.c b/src/soc/amd/common/block/psp/psp_gen2.c index e8d57fd015..12f5fec5bf 100644 --- a/src/soc/amd/common/block/psp/psp_gen2.c +++ b/src/soc/amd/common/block/psp/psp_gen2.c @@ -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; |