diff options
author | imp <imp@FreeBSD.org> | 2007-06-12 15:37:19 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2007-06-12 15:37:19 +0000 |
commit | d4a700c2dc6c55dae07b6ed7fe4d47508632b9f4 (patch) | |
tree | 0ae8c91399f156d2d3de7df83e1fc292de48873b /sys/dev/usb/ubser.c | |
parent | d6014e5948f9129258e24ea5eed97306faafe1cb (diff) | |
download | FreeBSD-src-d4a700c2dc6c55dae07b6ed7fe4d47508632b9f4.zip FreeBSD-src-d4a700c2dc6c55dae07b6ed7fe4d47508632b9f4.tar.gz |
Expand USB_ATTACH_{ERROR,SUCCESS}_RETURN inline and eliminate from
usb_port.h. They aren't needed, and are a legacy of this code's past.
Diffstat (limited to 'sys/dev/usb/ubser.c')
-rw-r--r-- | sys/dev/usb/ubser.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/ubser.c b/sys/dev/usb/ubser.c index 1a71b41..eb2bdb9 100644 --- a/sys/dev/usb/ubser.c +++ b/sys/dev/usb/ubser.c @@ -283,7 +283,7 @@ USB_ATTACH(ubser) if (ed == NULL) { printf("%s: couldn't get ep %d\n", device_get_nameunit(sc->sc_dev), i); - USB_ATTACH_ERROR_RETURN; + return ENXIO; } if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_IN && UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) { @@ -373,7 +373,7 @@ USB_ATTACH(ubser) } ubserstartread(sc); - USB_ATTACH_SUCCESS_RETURN; + return 0; fail_4: for (i = 0; i < sc->sc_numser; i++) { @@ -408,7 +408,7 @@ bad: } DPRINTF(("ubser_attach: ATTACH ERROR\n")); - USB_ATTACH_ERROR_RETURN; + return ENXIO; } USB_DETACH(ubser) |