nusb/serial: fix wrong guard statement (thanks deuteron)

This commit is contained in:
aiju 2018-11-06 12:05:15 +00:00
parent e76452a69f
commit 17f0b2ce38

View file

@ -465,7 +465,7 @@ procwrite(Req *req)
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 {