Return ENXIO on error, not 0. Seems to have been skipped when converting

to newbus.

Reviewed by:	bde
This commit is contained in:
Nick Hibma 2000-01-23 15:11:15 +00:00
parent 6b713d5806
commit 9c918de3de
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=56461
2 changed files with 2 additions and 2 deletions

View file

@ -1048,7 +1048,7 @@ sioattach(dev)
if (siosetwater(com, com->it_in.c_ispeed) != 0) {
enable_intr();
free(com, M_DEVBUF);
return (0);
return (ENXIO);
}
enable_intr();
termioschars(&com->it_in);

View file

@ -1048,7 +1048,7 @@ sioattach(dev)
if (siosetwater(com, com->it_in.c_ispeed) != 0) {
enable_intr();
free(com, M_DEVBUF);
return (0);
return (ENXIO);
}
enable_intr();
termioschars(&com->it_in);