From: Andreas Hansson Date: Thu, 26 May 2016 10:56:24 +0000 (+0100) Subject: arm, dev: Remove superfluous loop increment in flash device X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4a3e2156acb1a6152f78d2d9d92d0aece453ead9;p=gem5.git 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 --- 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] =