git: 6a51437fa0c7 - main - arm_add_efi_map_entries: Remove unused variable.

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Sat, 09 Apr 2022 00:30:26 UTC
The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=6a51437fa0c7907ed54adfba032b85956dc2a380

commit 6a51437fa0c7907ed54adfba032b85956dc2a380
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-04-09 00:30:14 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-04-09 00:30:14 +0000

    arm_add_efi_map_entries: Remove unused variable.
---
 sys/arm/arm/machdep_boot.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/sys/arm/arm/machdep_boot.c b/sys/arm/arm/machdep_boot.c
index ebdd761bfed3..6644af3a3e79 100644
--- a/sys/arm/arm/machdep_boot.c
+++ b/sys/arm/arm/machdep_boot.c
@@ -396,7 +396,7 @@ arm_add_efi_map_entries(struct efi_map_header *efihdr, struct mem_region *mr,
 {
 	struct efi_md *map, *p;
 	const char *type;
-	size_t efisz, memory_size;
+	size_t efisz;
 	int ndesc, i, j;
 
 	static const char *types[] = {
@@ -434,7 +434,6 @@ arm_add_efi_map_entries(struct efi_map_header *efihdr, struct mem_region *mr,
 		printf("%23s %12s %12s %8s %4s\n",
 		    "Type", "Physical", "Virtual", "#Pages", "Attr");
 
-	memory_size = 0;
 	for (i = 0, j = 0, p = map; i < ndesc; i++,
 	    p = efi_next_descriptor(p, efihdr->descriptor_size)) {
 		if (boothowto & RB_VERBOSE) {
@@ -491,7 +490,6 @@ arm_add_efi_map_entries(struct efi_map_header *efihdr, struct mem_region *mr,
 
 		mr[j].mr_start = p->md_phys;
 		mr[j].mr_size = p->md_pages * EFI_PAGE_SIZE;
-		memory_size += mr[j].mr_size;
 	}
 
 	*mrcnt = j;