From 52ad774fc1fac5a5aafe2731f0131941dccb86a6 Mon Sep 17 00:00:00 2001 From: Vadim Kaushan Date: Fri, 21 Dec 2018 23:01:25 +0100 Subject: [PATCH] Remove useless cfg_attr --- src/register/stvec.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/register/stvec.rs b/src/register/stvec.rs index 276329e..d780795 100644 --- a/src/register/stvec.rs +++ b/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); }