shithub: riscv

Download patch

ref: 5adf0606f17bf27ecfa682052fa95d26c169f69d
parent: 584caf6d1c6b44ce2f19c95581b7c6f134e2ba59
author: cinap_lenrek <[email protected]>
date: Sun Jun 14 20:30:19 EDT 2015

nusb/serial: remove unused channel

--- a/sys/src/cmd/nusb/serial/serial.c
+++ b/sys/src/cmd/nusb/serial/serial.c
@@ -31,8 +31,6 @@
 			chanclose(p->w4data);
 		if(p->gotdata != nil)
 			chanclose(p->gotdata);
-		if(p->readc)
-			chanclose(p->readc);
 	}
 }
 
--- a/sys/src/cmd/nusb/serial/serial.h
+++ b/sys/src/cmd/nusb/serial/serial.h
@@ -62,7 +62,6 @@
 
 	Channel *w4data;
 	Channel *gotdata;
-	Channel *readc;		/* to uncouple reads, only used in ftdi... */
 	int	ndata;
 	uchar	data[DataBufSz];