From b936865b76db24e160f4835e6ee73791c36dbc0a Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Sun, 8 Sep 2019 18:21:55 +0200 Subject: Remove unnecessary unsafe block --- src/register/control.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/register/control.rs b/src/register/control.rs index 52c412e..959bf91 100644 --- a/src/register/control.rs +++ b/src/register/control.rs @@ -176,7 +176,7 @@ pub unsafe fn write(_control: Control) { #[cfg(feature = "inline-asm")] () => { let control = _control.bits(); - unsafe { asm!("msr CONTROL, $0" :: "r"(control) : "memory" : "volatile") } + asm!("msr CONTROL, $0" :: "r"(control) : "memory" : "volatile"); } #[cfg(not(feature = "inline-asm"))] -- cgit v1.2.3