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/umodem.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/umodem.c')
-rw-r--r-- | sys/dev/usb/umodem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/umodem.c b/sys/dev/usb/umodem.c index 23fbbef..7eb50aa 100644 --- a/sys/dev/usb/umodem.c +++ b/sys/dev/usb/umodem.c @@ -406,11 +406,11 @@ USB_ATTACH(umodem) TASK_INIT(&sc->sc_task, 0, umodem_notify, sc); ucom_attach(&sc->sc_ucom); - USB_ATTACH_SUCCESS_RETURN; + return 0; bad: ucom->sc_dying = 1; - USB_ATTACH_ERROR_RETURN; + return ENXIO; } static int |