summaryrefslogtreecommitdiffstats
path: root/src/emu/dinetwork.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/dinetwork.cpp')
-rw-r--r--src/emu/dinetwork.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/emu/dinetwork.cpp b/src/emu/dinetwork.cpp
index 094d3476af1..db0544f3673 100644
--- a/src/emu/dinetwork.cpp
+++ b/src/emu/dinetwork.cpp
@@ -24,16 +24,13 @@ void device_network_interface::interface_pre_start()
int device_network_interface::send(u8 *buf, int len) const
{
+ if(!m_dev) return 0;
+
// TODO: enable this check when other devices implement delayed transmit
//assert_always(!m_send_timer->enabled(), "attempted to transmit while transmit already in progress");
- int result = 0;
-
- if (m_dev)
- {
- // send the data
- result = m_dev->send(buf, len);
- }
+ // send the data
+ int result = m_dev->send(buf, len);
// schedule transmit complete callback
m_send_timer->adjust(attotime::from_ticks(len, m_bandwidth * 1'000'000 / 8), result);