Re: [PATCH] tpm: remove redundant code from self-test functions
From: Jason Gunthorpe
Date: Thu Mar 31 2016 - 01:46:47 EST
On Wed, Mar 30, 2016 at 04:20:45PM +0300, Jarkko Sakkinen wrote:
> - rc = be32_to_cpu(cmd.header.out.return_code);
> if (rc == TPM_ERR_DISABLED || rc == TPM_ERR_DEACTIVATED) {
This line is the entire reason it is open coded, I see it being
removed, but I don't see how the functionality is maintained?
Jason