nusb/serial: fix wrong guard statement (thanks deuteron)
This commit is contained in:
parent
e76452a69f
commit
17f0b2ce38
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue