Commit 78cff3f5 authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Remove unnecessary parens

parent 74ed054d
......@@ -293,7 +293,7 @@ impl HbaPort {
if let Some(slot) = self.slot() {
let cmdheader = &mut clb[slot as usize];
cmdheader.cfl.write(((size_of::<FisRegH2D>() / size_of::<u32>()) as u8));
cmdheader.cfl.write((size_of::<FisRegH2D>() / size_of::<u32>()) as u8);
let cmdtbl = &mut ctbas[slot as usize];
unsafe { ptr::write_bytes(cmdtbl.deref_mut() as *mut HbaCmdTable as *mut u8, 0, size_of::<HbaCmdTable>()); }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment