ref: 17f0b2ce38f3c845a3bbbe0630185ca8dac684a4
parent: e76452a69f80ef0a3d3d9a719a725371b5e6beca
author: aiju <devnull@localhost>
date: Tue Nov 6 07:05:15 EST 2018
nusb/serial: fix wrong guard statement (thanks deuteron)
--- a/sys/src/cmd/nusb/serial/serial.c
+++ b/sys/src/cmd/nusb/serial/serial.c
@@ -465,7 +465,7 @@
data = req->ifcall.data;
count = req->ifcall.count;
qlock(ser);
- if(ser->wait4data != nil) {
+ if(ser->wait4write != nil) {
wcount = ser->wait4write(p, data, count);
qunlock(ser);
} else {