summaryrefslogtreecommitdiff
path: root/src/dev/arm/flash_device.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/dev/arm/flash_device.cc')
-rw-r--r--src/dev/arm/flash_device.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dev/arm/flash_device.cc b/src/dev/arm/flash_device.cc
index b651a1eeb..8e337cd86 100644
--- a/src/dev/arm/flash_device.cc
+++ b/src/dev/arm/flash_device.cc
@@ -605,7 +605,7 @@ FlashDevice::drain()
void
FlashDevice::checkDrain()
{
- if (drainState() == DrainState::Draining)
+ if (drainState() != DrainState::Draining)
return;
if (planeEvent.when() > curTick()) {