From 0bc1bb936f026ca5933d0e575976d463f3d32920 Mon Sep 17 00:00:00 2001 From: Alexandre Ratchov Date: Tue, 3 Jan 2017 06:45:59 +0000 Subject: No need to set use_maxpkt twice. From Michael W. Bombardieri. Thanks. --- sys/dev/usb/uaudio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys') 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; -- cgit v1.2.3