shithub: riscv

Download patch

ref: 3b51df75b58ac4ce394f332f5fad42be0b5c1491
parent: 8c57331b9b7c3e7013fb6fd95b14271bff7f7001
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Mon Nov 12 11:54:59 EST 2018

disk/mkfs: remove unused cputype variable (thanks kvik)

--- a/sys/src/cmd/disk/mkfs.c
+++ b/sys/src/cmd/disk/mkfs.c
@@ -30,7 +30,6 @@
 char	newfile[LEN];
 char	oldfile[LEN];
 char	*proto;
-char	*cputype;
 char	*oldroot;
 char	*newroot;
 char	*prog = "mkfs";
@@ -114,10 +113,6 @@
 	buf = malloc(buflen);
 	zbuf = malloc(buflen);
 	memset(zbuf, 0, buflen);
-
-	cputype = getenv("cputype");
-	if(cputype == 0)
-		cputype = "386";
 
 	errs = 0;
 	for(i = 0; i < argc; i++){