summaryrefslogtreecommitdiff
path: root/src/dev
diff options
context:
space:
mode:
Diffstat (limited to 'src/dev')
-rw-r--r--src/dev/dma_device.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/dev/dma_device.cc b/src/dev/dma_device.cc
index 952d6f622..770370320 100644
--- a/src/dev/dma_device.cc
+++ b/src/dev/dma_device.cc
@@ -85,10 +85,7 @@ DmaPort::handleResp(PacketPtr pkt, Tick delay)
if (state->totBytes == state->numBytes) {
if (state->completionEvent) {
delay += state->delay;
- if (delay)
- device->schedule(state->completionEvent, curTick() + delay);
- else
- state->completionEvent->process();
+ device->schedule(state->completionEvent, curTick() + delay);
}
delete state;
}