diff options
author | 2019-09-08 18:21:55 +0200 | |
---|---|---|
committer | 2019-09-08 18:21:55 +0200 | |
commit | b936865b76db24e160f4835e6ee73791c36dbc0a (patch) | |
tree | 80a3dfcea359d6693ce221502115c9bda3ca8a22 /src/register | |
parent | 33aad220841e6abe0ae5abd565c3f166b8d9ec7a (diff) | |
download | cortex-m-b936865b76db24e160f4835e6ee73791c36dbc0a.tar.gz cortex-m-b936865b76db24e160f4835e6ee73791c36dbc0a.tar.zst cortex-m-b936865b76db24e160f4835e6ee73791c36dbc0a.zip |
Remove unnecessary unsafe block
Diffstat (limited to 'src/register')
-rw-r--r-- | src/register/control.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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"))] |