]> git.dujemihanovic.xyz Git - u-boot.git/commit
tpm: Don't cleanup unless an error happens
authorSimon Glass <sjg@chromium.org>
Wed, 8 Apr 2020 22:57:25 +0000 (16:57 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Thu, 16 Apr 2020 06:36:28 +0000 (14:36 +0800)
commit88307654af35fd550324fc1d8504db0da7225950
tree1727529c41ef6c56a05a81bce48104277756e95d
parent32e8ee004a3dad1a9cc06bd3ac44d8ba562afc3e
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>
drivers/tpm/tpm-uclass.c