arm, dev: Remove superfluous loop increment in flash device
authorAndreas Hansson <andreas.hansson@arm.com>
Thu, 26 May 2016 10:56:24 +0000 (11:56 +0100)
committerAndreas Hansson <andreas.hansson@arm.com>
Thu, 26 May 2016 10:56:24 +0000 (11:56 +0100)
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>
src/dev/arm/flash_device.cc

index 60c910626ece05a2897913c7c8d4b912e7c8ebc8..112a94186a79a0a6511e3f244e9429078e6b748a 100644 (file)
@@ -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] =