summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Jeffery <andrew@aj.id.au>2018-02-27 17:44:33 +1030
committerAndrew Jeffery <andrew@aj.id.au>2018-03-24 13:59:32 +1030
commitbd38c21057cf58bc8977e0b2fc1497d73794be14 (patch)
tree54fee20ed6860dff1bc2d9c17944d8d6779403a1
parent2b73f172f048e5b232d2c8f7e78d74fd9f94dc67 (diff)
downloadphosphor-mboxd-bd38c21057cf58bc8977e0b2fc1497d73794be14.zip
phosphor-mboxd-bd38c21057cf58bc8977e0b2fc1497d73794be14.tar.gz
pnor_partition_table: Rename offt to blockOffset in Table::partition()
Change-Id: I0523a451c03c05f2851f06f99326c792149849b6 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
-rw-r--r--pnor_partition_table.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/pnor_partition_table.cpp b/pnor_partition_table.cpp
index c9d56a2..a679517 100644
--- a/pnor_partition_table.cpp
+++ b/pnor_partition_table.cpp
@@ -139,12 +139,12 @@ void Table::preparePartitions()
const pnor_partition& Table::partition(size_t offset) const
{
const decltype(auto) table = getNativeTable();
- size_t offt = offset / blockSize;
+ size_t blockOffset = offset / blockSize;
for (decltype(numParts) i{}; i < numParts; ++i)
{
- if ((offt >= table.partitions[i].data.base) &&
- (offt <
+ if ((blockOffset >= table.partitions[i].data.base) &&
+ (blockOffset <
(table.partitions[i].data.base + table.partitions[i].data.size)))
{
return table.partitions[i];
OpenPOWER on IntegriCloud