projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a69a0f3
)
arm, dev: Remove superfluous loop increment in flash device
author
Andreas Hansson
<andreas.hansson@arm.com>
Thu, 26 May 2016 10:56:24 +0000
(11:56 +0100)
committer
Andreas 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
patch
|
blob
|
history
diff --git
a/src/dev/arm/flash_device.cc
b/src/dev/arm/flash_device.cc
index 60c910626ece05a2897913c7c8d4b912e7c8ebc8..112a94186a79a0a6511e3f244e9429078e6b748a 100644
(file)
--- 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] =