Memtest86+: coreboot.c - Change var name to not mask other variable

The variable ptr is defined on line 6 - don't mask it in the if blocks
in the same function.

Change-Id: Icd70dd1608e4a004e47975741c5d18a53f5d8165
Signed-off-by: Martin Roth <martinroth@google.com>
Reviewed-on: https://review.coreboot.org/14180
Tested-by: build bot (Jenkins)
Reviewed-by: Werner Zeh <werner.zeh@siemens.com>
diff --git a/coreboot.c b/coreboot.c
index f1f92b8..b3c01bd 100644
--- a/coreboot.c
+++ b/coreboot.c
@@ -12,20 +12,19 @@
 	sum = 0;
 	if (laddr & 1) {
 		uint16_t buffer;
-		unsigned char *ptr;
+		unsigned char *tmp_ptr;
 		/* copy the first byte into a 2 byte buffer.
 		 * This way automatically handles the endian question
 		 * of which byte (low or high) the last byte goes in.
 		 */
 		buffer = 0;
-		ptr = addr;
-		memmove(&buffer, ptr, 1);
+		tmp_ptr = addr;
+		memmove(&buffer, tmp_ptr, 1);
 		sum += buffer;
 		if (sum > 0xFFFF)
 			sum -= 0xFFFF;
 		length -= 1;
-		addr = ptr +1;
-
+		addr = tmp_ptr + 1;
 	}
 	len = length >> 1;
 	ptr = addr;
@@ -37,14 +36,14 @@
 	addr = ptr;
 	if (length & 1) {
 		uint16_t buffer;
-		unsigned char *ptr;
+		unsigned char *tmp_ptr;
 		/* copy the last byte into a 2 byte buffer.
 		 * This way automatically handles the endian question
 		 * of which byte (low or high) the last byte goes in.
 		 */
 		buffer = 0;
-		ptr = addr;
-		memmove(&buffer, ptr, 1);
+		tmp_ptr = addr;
+		memmove(&buffer, tmp_ptr, 1);
 		sum += buffer;
 		if (sum > 0xFFFF)
 			sum -= 0xFFFF;