Get rid of one this == NULL comparison, reduces warnings by 10% with clang 3.6 (nw)

This commit is contained in:
Vas Crabb 2015-11-02 00:08:25 +11:00
parent 7f03841c2a
commit 44c21dcac5
2 changed files with 2 additions and 2 deletions

View File

@ -518,7 +518,8 @@ void devcb_write_base::write64_adapter(address_space &space, offs_t offset, UINT
void devcb_write_base::write_ioport_adapter(address_space &space, offs_t offset, UINT64 data, UINT64 mask)
{
m_target.ioport->write_safe(unshift_mask_xor(data));
if (m_target.ioport)
m_target.ioport->write(unshift_mask_xor(data));
}

View File

@ -1206,7 +1206,6 @@ public:
ioport_value read();
ioport_value read_safe(ioport_value defval) { return (this == NULL) ? defval : read(); }
void write(ioport_value value, ioport_value mask = ~0);
void write_safe(ioport_value value, ioport_value mask = ~0) { if (this != NULL) write(value, mask); }
// other operations
ioport_field *field(ioport_value mask);