From ce05c157a7973edfcecee4c389b238f52a509e62 Mon Sep 17 00:00:00 2001 From: Berkus Decker Date: Sat, 2 Mar 2019 19:16:16 +0200 Subject: [PATCH] Remove redundant returns * As suggested by clippy. --- src/arch/aarch64/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/arch/aarch64/mod.rs b/src/arch/aarch64/mod.rs index 8d7b330..56abb29 100644 --- a/src/arch/aarch64/mod.rs +++ b/src/arch/aarch64/mod.rs @@ -80,7 +80,7 @@ pub fn read_translation_control() -> u64 { unsafe { asm!("mrs $0, tcr_el1" : "=r"(tcr) ::: "volatile"); } - return tcr; + tcr } pub fn read_mair() -> u64 { @@ -88,7 +88,7 @@ pub fn read_mair() -> u64 { unsafe { asm!("mrs $0, mair_el1" : "=r"(mair) ::: "volatile"); } - return mair; + mair } pub fn write_translation_table_base(base: PhysicalAddress) {