ruby: fix issue with unused var in DMASequencer

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.
This commit is contained in:
Tony Gutierrez 2016-12-20 11:47:30 -05:00
parent b7d072b235
commit 02cb6b19a7
1 changed files with 1 additions and 3 deletions

View 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);
}