Browse Source

Remove useless cfg_attr

Vadim Kaushan 6 years ago
parent
commit
52ad774fc1
1 changed files with 0 additions and 1 deletions
  1. 0 1
      src/register/stvec.rs

+ 0 - 1
src/register/stvec.rs

@@ -39,7 +39,6 @@ write_csr!(0x105);
 
 /// Writes the CSR
 #[inline]
-#[cfg_attr(not(any(target_arch = "riscv32", target_arch = "riscv64")), allow(unused_variables))]
 pub unsafe fn write(addr: usize, mode: TrapMode) {
     _write(addr + mode as usize);
 }