summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/umodem.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2007-06-12 15:37:19 +0000
committerimp <imp@FreeBSD.org>2007-06-12 15:37:19 +0000
commitd4a700c2dc6c55dae07b6ed7fe4d47508632b9f4 (patch)
tree0ae8c91399f156d2d3de7df83e1fc292de48873b /sys/dev/usb/umodem.c
parentd6014e5948f9129258e24ea5eed97306faafe1cb (diff)
downloadFreeBSD-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.c4
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
OpenPOWER on IntegriCloud