mirror of
https://github.com/holub/mame
synced 2025-07-04 09:28:51 +03:00
Get rid of one this == NULL comparison, reduces warnings by 10% with clang 3.6 (nw)
This commit is contained in:
parent
7f03841c2a
commit
44c21dcac5
@ -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)
|
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));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1206,7 +1206,6 @@ public:
|
|||||||
ioport_value read();
|
ioport_value read();
|
||||||
ioport_value read_safe(ioport_value defval) { return (this == NULL) ? defval : read(); }
|
ioport_value read_safe(ioport_value defval) { return (this == NULL) ? defval : read(); }
|
||||||
void write(ioport_value value, ioport_value mask = ~0);
|
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
|
// other operations
|
||||||
ioport_field *field(ioport_value mask);
|
ioport_field *field(ioport_value mask);
|
||||||
|
Loading…
Reference in New Issue
Block a user