summaryrefslogtreecommitdiff
path: root/src/dram.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/dram.cc')
-rw-r--r--src/dram.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/dram.cc b/src/dram.cc
index bbd18b7..53db16b 100644
--- a/src/dram.cc
+++ b/src/dram.cc
@@ -54,10 +54,7 @@ Dram::load(std::vector<signed int> program)
int
Dram::process(void *id, int address, std::function<void(int line, int word)> request_handler)
{
- if (!preprocess(id))
- return 0;
-
- if (!this->is_data_ready())
+ if (!preprocess(id) || !this->is_data_ready())
return 0;
int line, word;