summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorratchov <ratchov@openbsd.org>2017-01-03 06:45:58 +0000
committerratchov <ratchov@openbsd.org>2017-01-03 06:45:58 +0000
commitbe6fe5a872612a07d00b7e295774c1d3f2077a90 (patch)
tree4d4040e62a0b13173fc6502f1c5dc38f50e4a8ef
parentIf gain is above MAX, no need to check whether it's below MIN. (diff)
downloadwireguard-openbsd-be6fe5a872612a07d00b7e295774c1d3f2077a90.tar.xz
wireguard-openbsd-be6fe5a872612a07d00b7e295774c1d3f2077a90.zip
No need to set use_maxpkt twice. From Michael W. Bombardieri. Thanks.
-rw-r--r--sys/dev/usb/uaudio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/uaudio.c b/sys/dev/usb/uaudio.c
index 4469eb5f7a6..5c4bb8cbe8c 100644
--- a/sys/dev/usb/uaudio.c
+++ b/sys/dev/usb/uaudio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uaudio.c,v 1.121 2016/12/12 06:51:09 ratchov Exp $ */
+/* $OpenBSD: uaudio.c,v 1.122 2017/01/03 06:45:58 ratchov Exp $ */
/* $NetBSD: uaudio.c,v 1.90 2004/10/29 17:12:53 kent Exp $ */
/*
@@ -3013,7 +3013,7 @@ uaudio_chan_init(struct chan *ch, int mode, int altidx,
__func__, altidx));
use_maxpkt = 1;
}
- if (mode == AUMODE_RECORD) {
+ else if (mode == AUMODE_RECORD) {
DPRINTF(("%s: using maxpktsize packets for record channel\n",
__func__));
use_maxpkt = 1;