changelog shortlog tags branches files raw gz bz2 help

Mercurial > hg > plan9front / changeset: nusb/serial: fix wrong guard statement (thanks deuteron)

changeset 6867: b7b7ff7d6823
parent 6866: 9781f1a24395
child 6868: 3a2e3a97af40
author: aiju
date: Tue, 06 Nov 2018 12:05:15 +0000
files: sys/src/cmd/nusb/serial/serial.c
description: nusb/serial: fix wrong guard statement (thanks deuteron)
     1.1--- a/sys/src/cmd/nusb/serial/serial.c
     1.2+++ b/sys/src/cmd/nusb/serial/serial.c
     1.3@@ -465,7 +465,7 @@ procwrite(Req *req)
     1.4 	data = req->ifcall.data;
     1.5 	count = req->ifcall.count;
     1.6 	qlock(ser);
     1.7-	if(ser->wait4data != nil) {
     1.8+	if(ser->wait4write != nil) {
     1.9 		wcount = ser->wait4write(p, data, count);
    1.10 		qunlock(ser);
    1.11 	} else {