Skip to content

Commit 52ad774

Browse files
committed
Remove useless cfg_attr
1 parent 921aa2b commit 52ad774

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/register/stvec.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ write_csr!(0x105);
3939

4040
/// Writes the CSR
4141
#[inline]
42-
#[cfg_attr(not(any(target_arch = "riscv32", target_arch = "riscv64")), allow(unused_variables))]
4342
pub unsafe fn write(addr: usize, mode: TrapMode) {
4443
_write(addr + mode as usize);
4544
}

0 commit comments

Comments
 (0)