diff options
author | 2020-05-04 19:19:26 +0000 | |
---|---|---|
committer | 2020-05-04 19:19:26 +0000 | |
commit | 9a98c5c8054d67c490baaa697f18e83c14b03e6a (patch) | |
tree | ea5bd980a4cf3623dc9ef297bfcc7ce9ea2e9761 | |
parent | Use a larger (2048 bit) RSA test key. (diff) | |
download | wireguard-openbsd-9a98c5c8054d67c490baaa697f18e83c14b03e6a.tar.xz wireguard-openbsd-9a98c5c8054d67c490baaa697f18e83c14b03e6a.zip |
Remove redundant code testing if a terminal is a usb stream.
Fixes coverity CID 1492830.
ok sthen, deraadt
-rw-r--r-- | sys/dev/usb/uaudio.c | 6 |
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"; |