aboutsummaryrefslogtreecommitdiff
path: root/resources/utilities/ich9deblob/src/gbe/gbe.c
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2015-01-11 04:32:19 +0000
committerFrancis Rowe <info@gluglug.org.uk>2015-01-11 04:32:19 +0000
commit715fe3c8d106e396562abff64977d5e33a043720 (patch)
tree31e995ae0d6d40607a3553f06d733aa5fefac776 /resources/utilities/ich9deblob/src/gbe/gbe.c
parent6c8370cde6bb15b0c127fca60169db8380d87232 (diff)
downloadlibrebootfr-715fe3c8d106e396562abff64977d5e33a043720.tar.gz
librebootfr-715fe3c8d106e396562abff64977d5e33a043720.zip
ich9deblob/ich9gen: checksum function: rename variable
Diffstat (limited to 'resources/utilities/ich9deblob/src/gbe/gbe.c')
-rw-r--r--resources/utilities/ich9deblob/src/gbe/gbe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/utilities/ich9deblob/src/gbe/gbe.c b/resources/utilities/ich9deblob/src/gbe/gbe.c
index b39e22b6..3a594bc2 100644
--- a/resources/utilities/ich9deblob/src/gbe/gbe.c
+++ b/resources/utilities/ich9deblob/src/gbe/gbe.c
@@ -33,13 +33,13 @@
*/
/* gbe checksum calculation (algorithm based on datasheet) */
-uint16_t gbeGetChecksumFrom4kBuffer(uint16_t* regionData, uint16_t desiredValue, int gbeRegionBase)
+uint16_t gbeGetChecksumFrom4kBuffer(uint16_t* gbeWord, uint16_t desiredValue, int gbeRegionBase)
{
int wordOffset;
uint16_t total = 0;
for (wordOffset = 0; wordOffset < 0x3F; wordOffset++)
- total += regionData[wordOffset + (gbeRegionBase>>1)];
+ total += gbeWord[wordOffset + (gbeRegionBase>>1)];
return desiredValue - total;
}