lib: sbi_hsm: Don't try to restore state on failed change
authorAndrew Jones <ajones@ventanamicro.com>
Mon, 27 Feb 2023 10:30:57 +0000 (11:30 +0100)
committerAnup Patel <anup@brainfault.org>
Mon, 27 Feb 2023 14:05:47 +0000 (19:35 +0530)
commit40f16a81d33d70b113645fc9dc5071a74267e613
treeebf66ea4b0704b62a18ec8c0ce0e72ff42018b3c
parent1364d5adb291ecf7471db571956545f592a5a615
lib: sbi_hsm: Don't try to restore state on failed change

When a state change fails there's no need to restore the original
state as it remains the same.

Signed-off-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
lib/sbi/sbi_hsm.c