tpm: drop unused fields in BackendCmd struct

They are never used.

Signed-off-by: Wei Liu <liuwe@microsoft.com>
This commit is contained in:
Wei Liu
2023-01-25 22:42:44 +00:00
committed by Rob Bradford
parent cffde0ff65
commit 73af65f417
2 changed files with 6 additions and 18 deletions

View File

@@ -472,10 +472,8 @@ impl BusDevice for Tpm {
self.regs[CRB_CTRL_START as usize] |= CRB_START_INVOKE;
let mut cmd = BackendCmd {
locality: locality as u8,
buffer: &mut self.data_buff,
input_len: cmp::min(self.data_buff_len, TPM_CRB_BUFFER_MAX),
selftest_done: false,
};
let _ = self.emulator.deliver_request(&mut cmd);