From 78cff3f57cae934ce690b8d130e9a015662d0077 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Sun, 28 Jan 2018 14:49:29 -0700 Subject: [PATCH] Remove unnecessary parens --- ahcid/src/ahci/hba.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ahcid/src/ahci/hba.rs b/ahcid/src/ahci/hba.rs index 982ad5e..22358e7 100644 --- a/ahcid/src/ahci/hba.rs +++ b/ahcid/src/ahci/hba.rs @@ -293,7 +293,7 @@ impl HbaPort { if let Some(slot) = self.slot() { { let cmdheader = &mut clb[slot as usize]; - cmdheader.cfl.write(((size_of::() / size_of::()) as u8)); + cmdheader.cfl.write((size_of::() / size_of::()) 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::()); } -- GitLab