From 9bab7076e27c4654dc3061b59fe21461396f7d0f Mon Sep 17 00:00:00 2001 From: Alexandre Ratchov Date: Mon, 4 May 2020 19:19:27 +0000 Subject: Remove redundant code testing if a terminal is a usb stream. Fixes coverity CID 1492830. ok sthen, deraadt --- sys/dev/usb/uaudio.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'sys/dev/usb') 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 * @@ -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"; -- cgit v1.2.3