summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/ufm.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/ufm.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/ufm.c')
-rw-r--r--sys/dev/usb/ufm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/ufm.c b/sys/dev/usb/ufm.c
index 6e60356..bdd57ee 100644
--- a/sys/dev/usb/ufm.c
+++ b/sys/dev/usb/ufm.c
@@ -160,11 +160,11 @@ USB_ATTACH(ufm)
UID_ROOT, GID_OPERATOR,
0644, "ufm%d", device_get_unit(self));
DPRINTFN(10, ("ufm_attach: %p\n", sc->sc_udev));
- USB_ATTACH_SUCCESS_RETURN;
+ return 0;
nobulk:
device_printf(sc->sc_dev, "could not find %s\n", ermsg);
- USB_ATTACH_ERROR_RETURN;
+ return ENXIO;
}
OpenPOWER on IntegriCloud