src/drivers/smmstore: Fix SMMSTOREv1 clear command

The `clear` command for SMMSTORE version 1 does not require a parameter.

Change-Id: I992b7ce5962bf7ee62b7e1970ae7aa1b975ef42e
Signed-off-by: Tim Crawford <tcrawford@system76.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/49724
Reviewed-by: Jeremy Soller <jeremy@system76.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Tim Crawford 2021-01-19 12:29:21 -07:00 committed by Patrick Georgi
parent 4ed4c2474b
commit e78e909180
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,7 @@ static uint32_t smmstorev2_exec(uint8_t command, void *param)
uint32_t smmstore_exec(uint8_t command, void *param)
{
if (!param)
if (command != SMMSTORE_CMD_CLEAR && !param)
return SMMSTORE_RET_FAILURE;
if (CONFIG(SMMSTORE_V2))