mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
tpm: drop unused fields in BackendCmd struct
They are never used. Signed-off-by: Wei Liu <liuwe@microsoft.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user