commit | bfb409b294a7a3563bda26ec0a798c47bb140c15 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Wed Apr 08 16:57:25 2020 -0600 |
committer | Bin Meng <bmeng.cn@gmail.com> | Thu Apr 16 14:36:28 2020 +0800 |
tree | 1727529c41ef6c56a05a81bce48104277756e95d | |
parent | 3c42e42dc739bf0f99c89aac86671fc8b06a662a [diff] |
tpm: Don't cleanup unless an error happens At present the cleanup() method is called on every transfer. It should only be called on failing transfers. Fix this and tidy up the error handling a little. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>