Skip to content

Commit b936865

Browse files
Remove unnecessary unsafe block
1 parent 33aad22 commit b936865

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/register/control.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ pub unsafe fn write(_control: Control) {
176176
#[cfg(feature = "inline-asm")]
177177
() => {
178178
let control = _control.bits();
179-
unsafe { asm!("msr CONTROL, $0" :: "r"(control) : "memory" : "volatile") }
179+
asm!("msr CONTROL, $0" :: "r"(control) : "memory" : "volatile");
180180
}
181181

182182
#[cfg(not(feature = "inline-asm"))]

0 commit comments

Comments
 (0)