ruby: fix issue with unused var in DMASequencer
authorTony Gutierrez <anthony.gutierrez@amd.com>
Tue, 20 Dec 2016 16:47:30 +0000 (11:47 -0500)
committerTony Gutierrez <anthony.gutierrez@amd.com>
Tue, 20 Dec 2016 16:47:30 +0000 (11:47 -0500)
the iterator declared in DMASequencer::ackCallback() is only used in an
assert, this causes clang to fail when building fast. here we move
the find call on the request table directly into the assert.

src/mem/ruby/system/DMASequencer.cc

index 4bee19b528cee752a125c01b7535e021c3b6cde3..9ffd28cecf59b19869bb83c1eb51556f1ee5d3fb 100644 (file)
@@ -191,9 +191,7 @@ DMASequencer::dataCallback(const DataBlock & dblk, const Addr& address)
 void
 DMASequencer::ackCallback(const Addr& address)
 {
-    RequestTable::iterator i = m_RequestTable.find(address);
-    assert(i != m_RequestTable.end());
-
+    assert(m_RequestTable.find(addres) != m_RequestTable.end());
     issueNext(address);
 }