summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/msm58321.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/msm58321.cpp')
-rw-r--r--src/devices/machine/msm58321.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/devices/machine/msm58321.cpp b/src/devices/machine/msm58321.cpp
index ade436a7d11..aa0c30987f6 100644
--- a/src/devices/machine/msm58321.cpp
+++ b/src/devices/machine/msm58321.cpp
@@ -348,8 +348,8 @@ void msm58321_device::nvram_default()
bool msm58321_device::nvram_read(util::read_stream &file)
{
- size_t actual;
- if (file.read(m_reg.data(), m_reg.size(), actual) || actual != m_reg.size())
+ auto const [err, actual] = read(file, m_reg.data(), m_reg.size());
+ if (err || (actual != m_reg.size()))
return false;
clock_updated();
@@ -364,8 +364,8 @@ bool msm58321_device::nvram_read(util::read_stream &file)
bool msm58321_device::nvram_write(util::write_stream &file)
{
- size_t actual;
- return !file.write(m_reg.data(), m_reg.size(), actual) && actual == m_reg.size();
+ auto const [err, actual] = write(file, m_reg.data(), m_reg.size());
+ return !err;
}
//-------------------------------------------------