summaryrefslogtreecommitdiff
path: root/sys/dev/usb/umodem.c
diff options
context:
space:
mode:
authorPaul Irofti <pirofti@cvs.openbsd.org>2013-11-15 10:17:40 +0000
committerPaul Irofti <pirofti@cvs.openbsd.org>2013-11-15 10:17:40 +0000
commit28f7f0e0c022cf25c6540bfb311267b7ba09cbfa (patch)
tree2473d6a60fdc1896c5a5237afaa36089484f7f9f /sys/dev/usb/umodem.c
parent3ab67e413a613e17c0a2eb67b3dbf371317b313a (diff)
Clean-up usbd_abort_pipe() usage.
This function never fails. So change it's return type to void and adjust the copy-pasted callers that were checking the return. "If it compiles, ok" mpi@
Diffstat (limited to 'sys/dev/usb/umodem.c')
-rw-r--r--sys/dev/usb/umodem.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/dev/usb/umodem.c b/sys/dev/usb/umodem.c
index 06ec7d42bdf..6cff78aa6fb 100644
--- a/sys/dev/usb/umodem.c
+++ b/sys/dev/usb/umodem.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: umodem.c,v 1.52 2013/11/15 08:25:31 pirofti Exp $ */
+/* $OpenBSD: umodem.c,v 1.53 2013/11/15 10:17:39 pirofti Exp $ */
/* $NetBSD: umodem.c,v 1.45 2002/09/23 05:51:23 simonb Exp $ */
/*
@@ -437,10 +437,7 @@ umodem_close(void *addr, int portno)
DPRINTF(("umodem_close: sc=%p\n", sc));
if (sc->sc_notify_pipe != NULL) {
- err = usbd_abort_pipe(sc->sc_notify_pipe);
- if (err)
- printf("%s: abort notify pipe failed: %s\n",
- sc->sc_dev.dv_xname, usbd_errstr(err));
+ usbd_abort_pipe(sc->sc_notify_pipe);
err = usbd_close_pipe(sc->sc_notify_pipe);
if (err)
printf("%s: close notify pipe failed: %s\n",