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);
|
error(Ebadusefd);
|
||||||
switch(ep->ttype){
|
switch(ep->ttype){
|
||||||
case Tnone:
|
case Tnone:
|
||||||
error("endpoint not configured");
|
error(Enotconf);
|
||||||
case Tctl:
|
case Tctl:
|
||||||
nr = rhubread(ep, a, n);
|
nr = rhubread(ep, a, n);
|
||||||
if(nr >= 0){
|
if(nr >= 0){
|
||||||
|
@ -1535,7 +1535,7 @@ usbwrite(Chan *c, void *a, long n, vlong off)
|
||||||
|
|
||||||
switch(ep->ttype){
|
switch(ep->ttype){
|
||||||
case Tnone:
|
case Tnone:
|
||||||
error("endpoint not configured");
|
error(Enotconf);
|
||||||
case Tctl:
|
case Tctl:
|
||||||
nr = rhubwrite(ep, a, n);
|
nr = rhubwrite(ep, a, n);
|
||||||
if(nr >= 0){
|
if(nr >= 0){
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue