]> Git Repo - J-u-boot.git/commit
tpm: Don't cleanup unless an error happens
authorSimon Glass <[email protected]>
Wed, 8 Apr 2020 22:57:25 +0000 (16:57 -0600)
committerBin Meng <[email protected]>
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 <[email protected]>
Reviewed-by: Bin Meng <[email protected]>
drivers/tpm/tpm-uclass.c
This page took 0.0324 seconds and 4 git commands to generate.