summaryrefslogtreecommitdiff
path: root/sys/dev/usb
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2020-05-04 19:19:27 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2020-05-04 19:19:27 +0000
commit9bab7076e27c4654dc3061b59fe21461396f7d0f (patch)
treee82d0dfca1aa6819e0843a7df52d2e755da4c81a /sys/dev/usb
parent5b9f33bdc2d993fe10082cc543bfeb65058f8d08 (diff)
Remove redundant code testing if a terminal is a usb stream.
Fixes coverity CID 1492830. ok sthen, deraadt
Diffstat (limited to 'sys/dev/usb')
-rw-r--r--sys/dev/usb/uaudio.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/dev/usb/uaudio.c b/sys/dev/usb/uaudio.c
index 7f54d7caa69..aa46e8befc4 100644
--- a/sys/dev/usb/uaudio.c
+++ b/sys/dev/usb/uaudio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uaudio.c,v 1.158 2020/04/30 12:45:52 ratchov Exp $ */
+/* $OpenBSD: uaudio.c,v 1.159 2020/05/04 19:19:26 ratchov Exp $ */
/*
* Copyright (c) 2018 Alexandre Ratchov <alex@caoua.org>
*
@@ -638,10 +638,6 @@ uaudio_tname(struct uaudio_softc *sc, unsigned int type, int isout)
/* determine name from USB terminal type */
switch (hi) {
- case 1:
- /* usb data stream */
- name = isout ? UAUDIO_NAME_REC : UAUDIO_NAME_PLAY;
- break;
case 2:
/* embedded inputs */
name = isout ? "mic-out" : "mic";