mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 21:55:20 +00:00
devices: clean up two comments in TPM code
Signed-off-by: Wei Liu <liuwe@microsoft.com>
This commit is contained in:
parent
cd1470e289
commit
8db630763a
@ -343,7 +343,6 @@ impl Tpm {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//impl BusDevice for TPM
|
|
||||||
impl BusDevice for Tpm {
|
impl BusDevice for Tpm {
|
||||||
fn read(&mut self, _base: u64, offset: u64, data: &mut [u8]) {
|
fn read(&mut self, _base: u64, offset: u64, data: &mut [u8]) {
|
||||||
let mut offset: u32 = offset as u32;
|
let mut offset: u32 = offset as u32;
|
||||||
@ -492,7 +491,7 @@ impl BusDevice for Tpm {
|
|||||||
e
|
e
|
||||||
))
|
))
|
||||||
});
|
});
|
||||||
//TODO: drop the copy here
|
// TODO: drop the copy here
|
||||||
self.data_buff.fill(0);
|
self.data_buff.fill(0);
|
||||||
self.data_buff.clone_from_slice(output.unwrap().as_slice());
|
self.data_buff.clone_from_slice(output.unwrap().as_slice());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user