From 3403b8c4eee0640022f619504706a99a28dde1f5 Mon Sep 17 00:00:00 2001 From: Francis Rowe Date: Sun, 11 Jan 2015 00:13:03 +0000 Subject: ich9deblob/ich9gen: checksum word grab: shift, not multiply --- resources/utilities/ich9deblob/src/gbe/gbe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'resources/utilities/ich9deblob') diff --git a/resources/utilities/ich9deblob/src/gbe/gbe.c b/resources/utilities/ich9deblob/src/gbe/gbe.c index e8faa51f..beb5e141 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))); } /* -- cgit v1.2.3-70-g09d2