summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorShawn Hoffman <godisgovernment@gmail.com>2018-09-30 18:18:28 -0700
committerShawn Hoffman <godisgovernment@gmail.com>2018-09-30 18:22:35 -0700
commitd300f3bbbc4ea47b5e074efe2a5348ac5c0b2987 (patch)
tree1cf9d7ac128e572c31278f780498c57e3e5d3516 /Source/Core
parent2cd96aa5bbcf5a13381acf9b22ef08ca090deff6 (diff)
exi ipl: quiet a gcc warning
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/HW/EXI/EXI_DeviceIPL.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/Source/Core/Core/HW/EXI/EXI_DeviceIPL.cpp b/Source/Core/Core/HW/EXI/EXI_DeviceIPL.cpp
index 99c6e0cac4..b30bf5b569 100644
--- a/Source/Core/Core/HW/EXI/EXI_DeviceIPL.cpp
+++ b/Source/Core/Core/HW/EXI/EXI_DeviceIPL.cpp
@@ -291,13 +291,13 @@ void CEXIIPL::TransferByte(u8& data)
#define DEV_ADDR(x) (address - x##_BASE)
#define DEV_ADDR_CURSOR(x) (DEV_ADDR(x) + m_cursor++)
- auto UartFifoAccess = [&](u8* data) {
+ auto UartFifoAccess = [&]() {
if (m_command.is_write())
{
- if (*data != '\0')
- m_buffer += *data;
+ if (data != '\0')
+ m_buffer += data;
- if (*data == '\r')
+ if (data == '\r')
{
NOTICE_LOG(OSREPORT, "%s", SHIFTJISToUTF8(m_buffer).c_str());
m_buffer.clear();
@@ -306,7 +306,7 @@ void CEXIIPL::TransferByte(u8& data)
else
{
// "Queue Length"... return 0 cause we're instant
- *data = 0;
+ data = 0;
}
};
@@ -351,7 +351,7 @@ void CEXIIPL::TransferByte(u8& data)
{
case 0:
// Seems to be 16byte fifo
- UartFifoAccess(&data);
+ UartFifoAccess();
break;
case 0xc:
// Seen being written to after reading 4 bytes from barnacle
@@ -375,7 +375,7 @@ void CEXIIPL::TransferByte(u8& data)
// so we can leave the byte untouched.
break;
case 4:
- UartFifoAccess(&data);
+ UartFifoAccess();
break;
}
}