summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/ataflash.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/ataflash.cpp')
-rw-r--r--src/devices/machine/ataflash.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/devices/machine/ataflash.cpp b/src/devices/machine/ataflash.cpp
index 914ba2bcc65..a7491f1eb1e 100644
--- a/src/devices/machine/ataflash.cpp
+++ b/src/devices/machine/ataflash.cpp
@@ -9,7 +9,7 @@
const device_type ATA_FLASH_PCCARD = &device_creator<ata_flash_pccard_device>;
ata_flash_pccard_device::ata_flash_pccard_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
- ide_hdd_device(mconfig, ATA_FLASH_PCCARD, "ATA Flash PCCARD", tag, owner, clock, "ataflash", __FILE__)
+ ide_hdd_device(mconfig, ATA_FLASH_PCCARD, "ATA Flash PCCARD", tag, owner, clock, "ataflash", __FILE__), m_gnetreadlock(0), m_locked(0)
{
}
@@ -29,7 +29,7 @@ void ata_flash_pccard_device::device_reset()
memset(m_key, 0, sizeof(m_key));
memset(m_cis, 0xff, 512);
- if (m_handle != NULL)
+ if (m_handle != nullptr)
{
m_handle->read_metadata(PCMCIA_CIS_METADATA_TAG, 0, m_cis, 512, metalength);
@@ -97,7 +97,7 @@ READ16_MEMBER( ata_flash_pccard_device::read_reg )
WRITE16_MEMBER( ata_flash_pccard_device::write_reg )
{
- if(offset >= 0x280 && offset <= 0x288 && m_handle != NULL)
+ if(offset >= 0x280 && offset <= 0x288 && m_handle != nullptr)
{
UINT8 v = data;
int pos = offset - 0x280;