summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/src/9/port/devusb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/9/port/devusb.c b/sys/src/9/port/devusb.c
index 846ed32ab..129cb325c 100644
--- a/sys/src/9/port/devusb.c
+++ b/sys/src/9/port/devusb.c
@@ -1141,7 +1141,7 @@ usbread(Chan *c, void *a, long n, vlong offset)
error(Ebadusefd);
switch(ep->ttype){
case Tnone:
- error("endpoint not configured");
+ error(Enotconf);
case Tctl:
nr = rhubread(ep, a, n);
if(nr >= 0){
@@ -1535,7 +1535,7 @@ usbwrite(Chan *c, void *a, long n, vlong off)
switch(ep->ttype){
case Tnone:
- error("endpoint not configured");
+ error(Enotconf);
case Tctl:
nr = rhubwrite(ep, a, n);
if(nr >= 0){