summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2017-04-17 19:13:47 -0400
committerLioncash <mathew1800@gmail.com>2017-04-17 19:13:47 -0400
commit9cfc671c69cd816d2123ba7c47ef1bf42cbf2ba5 (patch)
treeba30babdd7a0721325581be577d8d0f325f38313 /Source/Core
parente0c489d80cbd512cff50328d77aa93d5c3600f84 (diff)
MMU: Get rid of unnecessary temporaries in HostRead_[8|16|32] functions
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/PowerPC/MMU.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/Source/Core/Core/PowerPC/MMU.cpp b/Source/Core/Core/PowerPC/MMU.cpp
index 557ae8746a..14c97a0f79 100644
--- a/Source/Core/Core/PowerPC/MMU.cpp
+++ b/Source/Core/Core/PowerPC/MMU.cpp
@@ -551,20 +551,17 @@ void Write_F64(const double var, const u32 address)
u8 HostRead_U8(const u32 address)
{
- u8 var = ReadFromHardware<FLAG_NO_EXCEPTION, u8>(address);
- return var;
+ return ReadFromHardware<FLAG_NO_EXCEPTION, u8>(address);
}
u16 HostRead_U16(const u32 address)
{
- u16 var = ReadFromHardware<FLAG_NO_EXCEPTION, u16>(address);
- return var;
+ return ReadFromHardware<FLAG_NO_EXCEPTION, u16>(address);
}
u32 HostRead_U32(const u32 address)
{
- u32 var = ReadFromHardware<FLAG_NO_EXCEPTION, u32>(address);
- return var;
+ return ReadFromHardware<FLAG_NO_EXCEPTION, u32>(address);
}
u64 HostRead_U64(const u32 address)