code: 9ferno

Download patch

ref: c0a28bad03c29788d9fc18b5ab56c13a6222bf7d
parent: 07bee1c2ea89752e608d881dde2e2a4a1e738516
author: 9ferno <gophone2015@gmail.com>
date: Mon Aug 9 01:43:29 EDT 2021

cleaned up unused variables

--- a/os/port/memmap.c
+++ b/os/port/memmap.c
@@ -26,16 +26,14 @@
 static void
 dump1(Mapent *e)
 {
-	char tstr[64], *ep;
+	char tstr[64];
 	int n;
-	u32 type;
 
 	memset(tstr, '\0', 64);
 	if(e->type & Allocated)
 		strncpy(tstr, "Allocated ", 64);
 	n = strlen(tstr);
-	type = e->type & 0xf;
-	switch(type){
+	switch(e->type & 0xf){
 		case 0:
 			 strncpy(tstr+n, "unbacked physical address", 64-n);
 			break;