summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2020-03-11 13:04:03 +0000
committerJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2020-03-11 13:04:03 +0000
commit3af0b07605d9d66cdd9541e23dc8676d01d66b4a (patch)
treeb47deeef719e2fbb91eb6c0ce7de5d9fd600bce9
parente8d6f6314667fe942296db319234f943ced4ae40 (diff)
Remove dead code which is actually duplicated a few lines above
right after err is set. Coverity CID 975917 ok kettenis@ kn@
-rw-r--r--sys/dev/usb/uplcom.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/dev/usb/uplcom.c b/sys/dev/usb/uplcom.c
index 738ae7c147b..77d8476759f 100644
--- a/sys/dev/usb/uplcom.c
+++ b/sys/dev/usb/uplcom.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uplcom.c,v 1.73 2018/11/18 16:23:14 mpi Exp $ */
+/* $OpenBSD: uplcom.c,v 1.74 2020/03/11 13:04:02 jasper Exp $ */
/* $NetBSD: uplcom.c,v 1.29 2002/09/23 05:51:23 simonb Exp $ */
/*
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -627,11 +627,6 @@ uplcom_param(void *addr, int portno, struct termios *t)
if (sc->sc_rts == -1 || sc->sc_dtr == -1)
uplcom_set_line_state(sc);
- if (err) {
- DPRINTF(("uplcom_param: err=%s\n", usbd_errstr(err)));
- return (EIO);
- }
-
return (0);
}