There's only one error that we can get back right now, but future
changes will add some more cases that we need to watch out for. Start
by returning errors and propagating them back.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Skipped - Unit
Tests Skipped - Build Status
Buildable 60991 Build 57875: arc lint + arc unit
Event Timeline
sys/dev/usb/serial/usb_serial.c | ||
---|---|---|
809 | Why return ENOTTY and then translate the error? |
sys/dev/usb/serial/usb_serial.c | ||
---|---|---|
809 | Will fix- originally this bubbled up to ucom_ioctl as well, where it didn't get translated. Later revisions added ucom_command_barrier which will get used in some contexts where ENOTTY makes sense for the tty layer (ioctl) and others where ENXIO makes more sense. |
Comment Actions
Return ENXIO from ucom_queue_command; the ENOTTY conversion to ENXIO in some
callers goes away for now.