summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Lord-Nightmare <Lord-Nightmare@users.noreply.github.com>2017-09-01 03:07:41 -0400
committer Lord-Nightmare <Lord-Nightmare@users.noreply.github.com>2017-09-01 03:07:41 -0400
commitd3240892254bf956ff4102b2561e6fd4a0a93660 (patch)
treeeb0d15c0b1c5a38c1a97058b0852f7150af476cb
parenta0b2f9b62ac28d21a935246a655aac8f5c2f6f87 (diff)
cleanup (nw)
-rw-r--r--src/mame/drivers/grchamp.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/drivers/grchamp.cpp b/src/mame/drivers/grchamp.cpp
index 26d1b8e399e..8b0a0a061e5 100644
--- a/src/mame/drivers/grchamp.cpp
+++ b/src/mame/drivers/grchamp.cpp
@@ -440,7 +440,7 @@ READ8_MEMBER(grchamp_state::main_to_sub_comm_r)
*************************************/
TIMER_CALLBACK_MEMBER(grchamp_state::soundlatch_w_cb)
{
- if ((m_soundlatch_flag != false) && (m_soundlatch_data != param))
+ if (m_soundlatch_flag && (m_soundlatch_data != param))
logerror("Warning: soundlatch written before being read. Previous: %02x, new: %02x\n", m_soundlatch_data, param);
m_soundlatch_data = param;
m_soundlatch_flag = true;
@@ -449,7 +449,7 @@ TIMER_CALLBACK_MEMBER(grchamp_state::soundlatch_w_cb)
TIMER_CALLBACK_MEMBER(grchamp_state::soundlatch_clear7_w_cb)
{
- if (m_soundlatch_flag != false)
+ if (m_soundlatch_flag)
logerror("Warning: soundlatch bit 7 cleared before being read. Previous: %02x, new: %02x\n", m_soundlatch_data, m_soundlatch_data&0x7f);
m_soundlatch_data &= 0x7F;
}