Attention is currently required from: Zheng Bao. Hello Zheng Bao,
I'd like you to do a code review. Please visit
https://review.coreboot.org/c/coreboot/+/58320
to review the following change.
Change subject: [trivial]amdfwtool: Fix some blanks ......................................................................
[trivial]amdfwtool: Fix some blanks
Change-Id: I4c57c9bade318d54315f9692cd37edb694e33aa9 Signed-off-by: Zheng Bao fishbaozi@gmail.com --- M util/amdfwtool/amdfwtool.c 1 file changed, 4 insertions(+), 5 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/20/58320/1
diff --git a/util/amdfwtool/amdfwtool.c b/util/amdfwtool/amdfwtool.c index 606dbb5..35f7565 100644 --- a/util/amdfwtool/amdfwtool.c +++ b/util/amdfwtool/amdfwtool.c @@ -150,10 +150,10 @@ while (length) { index = length >= 359 ? 359 : length; length -= index; - do { - c0 += *(pptr++); - c1 += c0; - } while (--index); + do { + c0 += *(pptr++); + c1 += c0; + } while (--index); c0 = (c0 & 0xFFFF) + (c0 >> 16); c1 = (c1 & 0xFFFF) + (c1 >> 16); } @@ -360,7 +360,6 @@ { .type = AMD_BIOS_INVALID }, };
- #define MAX_BIOS_ENTRIES 0x2f
typedef struct _context {