shithub: scc

Download patch

ref: 7881c61acd222f71b17e4257b5a5d8b8e2b89f78
parent: e15b961f04420e53a107bab62c5af4eafd21e752
author: Quentin Rameau <[email protected]>
date: Wed May 25 13:44:39 EDT 2016

[driver] Remove unnecessary variable

--- a/driver/posix/scc.c
+++ b/driver/posix/scc.c
@@ -96,13 +96,11 @@
 main(int argc, char *argv[])
 {
 	int fds[2], st, i;
-	char *p;
 	pid_t pid;
 
 	atexit(terminate);
 
-	if (p = getenv("ARCH"))
-		arch = p;
+	arch = getenv("ARCH");
 
 	ARGBEGIN {
 	case 'm':