From 4a3e2156acb1a6152f78d2d9d92d0aece453ead9 Mon Sep 17 00:00:00 2001 From: Andreas Hansson Date: Thu, 26 May 2016 11:56:24 +0100 Subject: [PATCH] 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 --- src/dev/arm/flash_device.cc | 1 - 1 file changed, 1 deletion(-) 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] = -- 2.30.2