]> git.baikalelectronics.ru Git - uboot.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)
commit039b486af856dc5755c8de7269de82cde8b000c8
tree1727529c41ef6c56a05a81bce48104277756e95d
parentcc89eff870aa633feab49786d68855d97d66c3a2
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