devusb: use Enotconf[] string constant
This commit is contained in:
parent
86a9f92f47
commit
c4ec69045e
1 changed files with 2 additions and 2 deletions
|
@ -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){
|
||||
|
|
Loading…
Reference in a new issue