From c4ec69045e40277433a7fdc48c0ff4b19a11fa59 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Sat, 20 Oct 2018 19:41:37 +0200 Subject: devusb: use Enotconf[] string constant --- sys/src/9/port/devusb.c | 4 ++-- 1 file 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){ -- cgit v1.2.3