misc: clippy: add semicolon_if_nothing_returned
Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de> On-behalf-of: SAP philipp.schuster@sap.com
This commit is contained in:
parent
ea4f07d3bf
commit
b4c62bf159
64 changed files with 244 additions and 236 deletions
|
|
@ -634,7 +634,7 @@ pub fn generate_common_cpuid(
|
|||
// Clear AMX related bits if the AMX feature is not enabled
|
||||
0x7 => {
|
||||
if !config.amx && entry.index == 0 {
|
||||
entry.edx &= !((1 << AMX_BF16) | (1 << AMX_TILE) | (1 << AMX_INT8))
|
||||
entry.edx &= !((1 << AMX_BF16) | (1 << AMX_TILE) | (1 << AMX_INT8));
|
||||
}
|
||||
}
|
||||
0xd =>
|
||||
|
|
@ -701,7 +701,7 @@ pub fn generate_common_cpuid(
|
|||
| (1 << KVM_FEATURE_CLOCKSOURCE_STABLE_BIT)
|
||||
| (1 << KVM_FEATURE_ASYNC_PF_BIT)
|
||||
| (1 << KVM_FEATURE_ASYNC_PF_VMEXIT_BIT)
|
||||
| (1 << KVM_FEATURE_STEAL_TIME_BIT))
|
||||
| (1 << KVM_FEATURE_STEAL_TIME_BIT));
|
||||
}
|
||||
}
|
||||
_ => {}
|
||||
|
|
|
|||
|
|
@ -304,7 +304,7 @@ fn align_hob(v: u64) -> u64 {
|
|||
|
||||
impl TdHob {
|
||||
fn update_offset<T>(&mut self) {
|
||||
self.current_offset = align_hob(self.current_offset + std::mem::size_of::<T>() as u64)
|
||||
self.current_offset = align_hob(self.current_offset + std::mem::size_of::<T>() as u64);
|
||||
}
|
||||
|
||||
pub fn start(offset: u64) -> TdHob {
|
||||
|
|
@ -528,7 +528,7 @@ mod unit_tests {
|
|||
let mut f = std::fs::File::open("tdvf.fd").unwrap();
|
||||
let (sections, _) = parse_tdvf_sections(&mut f).unwrap();
|
||||
for section in sections {
|
||||
eprintln!("{section:x?}")
|
||||
eprintln!("{section:x?}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue