diff options
Diffstat (limited to 'src/emu/addrmap.cpp')
-rw-r--r-- | src/emu/addrmap.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/emu/addrmap.cpp b/src/emu/addrmap.cpp index 3cc309c0a74..b015620f0eb 100644 --- a/src/emu/addrmap.cpp +++ b/src/emu/addrmap.cpp @@ -774,8 +774,7 @@ void address_map::map_validity_check(validity_checker &valid, int spacenum) cons case 64: devtag = entry.m_rproto64.device_name(); break; } if (entry.m_devbase.subdevice(devtag) == nullptr) - osd_printf_error("%s space memory map entry reads from nonexistent device '%s'\n", spaceconfig.m_name, - devtag != nullptr ? devtag : "<unspecified>"); + osd_printf_error("%s space memory map entry reads from nonexistent device '%s'\n", spaceconfig.m_name, devtag ? devtag : "<unspecified>"); #ifndef MAME_DEBUG // assert will catch this earlier (void)entry.unitmask_is_appropriate(entry.m_read.m_bits, entry.m_mask, entry.m_read.m_name); #endif @@ -792,8 +791,7 @@ void address_map::map_validity_check(validity_checker &valid, int spacenum) cons case 64: devtag = entry.m_wproto64.device_name(); break; } if (entry.m_devbase.subdevice(devtag) == nullptr) - osd_printf_error("%s space memory map entry writes to nonexistent device '%s'\n", spaceconfig.m_name, - devtag != nullptr ? devtag : "<unspecified>"); + osd_printf_error("%s space memory map entry writes to nonexistent device '%s'\n", spaceconfig.m_name, devtag ? devtag : "<unspecified>"); #ifndef MAME_DEBUG // assert will catch this earlier (void)entry.unitmask_is_appropriate(entry.m_write.m_bits, entry.m_mask, entry.m_write.m_name); #endif @@ -803,8 +801,7 @@ void address_map::map_validity_check(validity_checker &valid, int spacenum) cons // extract the device tag from the proto-delegate const char *devtag = entry.m_soproto.device_name(); if (entry.m_devbase.subdevice(devtag) == nullptr) - osd_printf_error("%s space memory map entry references nonexistent device '%s'\n", spaceconfig.m_name, - devtag != nullptr ? devtag : "<unspecified>"); + osd_printf_error("%s space memory map entry references nonexistent device '%s'\n", spaceconfig.m_name, devtag ? devtag : "<unspecified>"); } // make sure ports exist |