diff options
author | Francis Rowe <info@gluglug.org.uk> | 2015-01-10 19:13:03 (EST) |
---|---|---|
committer | Francis Rowe <info@gluglug.org.uk> | 2015-01-10 19:13:03 (EST) |
commit | 3403b8c4eee0640022f619504706a99a28dde1f5 (patch) | |
tree | c813430335ec336a823ec69a0b56fd8514bebd2d | |
parent | f6da483213c5a9ad026c2740eeff120414492a40 (diff) | |
download | libreboot-3403b8c4eee0640022f619504706a99a28dde1f5.zip libreboot-3403b8c4eee0640022f619504706a99a28dde1f5.tar.gz libreboot-3403b8c4eee0640022f619504706a99a28dde1f5.tar.bz2 |
ich9deblob/ich9gen: checksum word grab: shift, not multiply
-rw-r--r-- | resources/utilities/ich9deblob/src/gbe/gbe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/utilities/ich9deblob/src/gbe/gbe.c b/resources/utilities/ich9deblob/src/gbe/gbe.c index e8faa51..beb5e14 100644 --- a/resources/utilities/ich9deblob/src/gbe/gbe.c +++ b/resources/utilities/ich9deblob/src/gbe/gbe.c @@ -35,7 +35,7 @@ /* Read a 16-bit unsigned int from a supplied region buffer */ uint16_t gbeGetRegionWordFrom8kBuffer(int index, uint8_t* regionData) { - return *((uint16_t*)(regionData + (index * 2))); + return *((uint16_t*)(regionData + (index << 1))); } /* |