diff options
author | Andreas Hansson <andreas.hansson@arm.com> | 2016-05-26 11:56:24 +0100 |
---|---|---|
committer | Andreas Hansson <andreas.hansson@arm.com> | 2016-05-26 11:56:24 +0100 |
commit | 4a3e2156acb1a6152f78d2d9d92d0aece453ead9 (patch) | |
tree | ea9b4b31fed1e7e6f958ebc6478298c1a8e7fbb1 /src/dev | |
parent | a69a0f33cbe546826756b31dcefbe9d1fdb84b2a (diff) | |
download | gem5-4a3e2156acb1a6152f78d2d9d92d0aece453ead9.tar.xz |
arm, dev: Remove superfluous loop increment in flash device
As identified by clang-3.8, there was a superfluous loop increment in
the flash device which is now removed.
Change-Id: If46a1c4f72d3d4c9f219124030894ca433c790af
Reviewed-by: Rene De Jong <rene.dejong@arm.com>
Diffstat (limited to 'src/dev')
-rw-r--r-- | src/dev/arm/flash_device.cc | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/dev/arm/flash_device.cc b/src/dev/arm/flash_device.cc index 60c910626..112a94186 100644 --- a/src/dev/arm/flash_device.cc +++ b/src/dev/arm/flash_device.cc @@ -383,7 +383,6 @@ FlashDevice::remap(uint64_t logic_page_addr) assert(block + count < pagesPerDisk); locationTable[block + count].page = (block + count) % pagesPerBlock; - ++count; } blockEmptyEntries[locationTable[logic_page_addr].block] = |