diff options
-rw-r--r-- | src/soc/amd/common/block/psp/psp.c | 4 | ||||
-rw-r--r-- | src/soc/amd/common/block/psp/psp_gen2.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/soc/amd/common/block/psp/psp.c b/src/soc/amd/common/block/psp/psp.c index 008052b729..9ad04e1ce6 100644 --- a/src/soc/amd/common/block/psp/psp.c +++ b/src/soc/amd/common/block/psp/psp.c @@ -71,7 +71,7 @@ enum cb_err psp_get_ftpm_capabilties(uint32_t *capabilities) /* buffer's status shouldn't change but report it if it does */ psp_print_cmd_status(cmd_status, &buffer.header); - if (!cmd_status) + if (cmd_status) return CB_ERR; *capabilities = read32(&buffer.capabilities); @@ -94,7 +94,7 @@ enum cb_err psp_get_hsti_state(uint32_t *state) /* buffer's status shouldn't change but report it if it does */ psp_print_cmd_status(cmd_status, &buffer.header); - if (!cmd_status) + if (cmd_status) return CB_ERR; *state = read32(&buffer.state); diff --git a/src/soc/amd/common/block/psp/psp_gen2.c b/src/soc/amd/common/block/psp/psp_gen2.c index 2113b5725b..21c1f2a735 100644 --- a/src/soc/amd/common/block/psp/psp_gen2.c +++ b/src/soc/amd/common/block/psp/psp_gen2.c @@ -193,7 +193,7 @@ enum cb_err psp_get_psp_capabilities(uint32_t *capabilities) /* buffer's status shouldn't change but report it if it does */ psp_print_cmd_status(cmd_status, &buffer.header); - if (!cmd_status) + if (cmd_status) return CB_ERR; *capabilities = read32(&buffer.capabilities); |