]> git.proxmox.com Git - swtpm.git/commit
swtpm_setup: remove redundant delete_state function
authorStefan Reiter <stefan@pimaker.at>
Thu, 30 Sep 2021 07:30:45 +0000 (09:30 +0200)
committerStefan Berger <stefanb@us.ibm.com>
Tue, 5 Oct 2021 15:54:42 +0000 (11:54 -0400)
commit3da95325eec62b36421db4628c9ce187214a8bdf
treedc9b90b64338ece983f963ea500e6a93eabd2e06
parent0716f994be27b4e6ad7a316125a0b9a779a8ecfb
swtpm_setup: remove redundant delete_state function

...and use delete_swtpm_statefiles instead. This function iterates the
folder instead of just deleting one file, but since it is already called
before the init call guarded here, it can only affect files created by
this run anyway.

Note that delete_state had slightly different return semantics, but it
doesn't matter, as the return value is ignored here anyway (best effort
cleanup).

Signed-off-by: Stefan Reiter <stefan@pimaker.at>
src/swtpm_setup/swtpm_setup.c