[block-cache] remove unused var

This commit is contained in:
Joe Thornber 2017-08-14 10:34:59 +01:00
parent 398d53e0d6
commit dfd066e59e

View File

@ -252,7 +252,7 @@ block_cache::wait_specific(block &b)
unsigned unsigned
block_cache::writeback(unsigned count) block_cache::writeback(unsigned count)
{ {
unsigned actual = 0, dirty_length = 0; unsigned actual = 0;
// issue_write unlinks b, which invalidates the iteration, so we // issue_write unlinks b, which invalidates the iteration, so we
// keep track of the next element before removing. // keep track of the next element before removing.
@ -261,7 +261,6 @@ block_cache::writeback(unsigned count)
while (it != dirty_.end()) { while (it != dirty_.end()) {
next = it; next = it;
++next; ++next;
dirty_length++;
if (actual == count) if (actual == count)
break; break;