snd_uaudio: Simplify chan->curr_cable calculation in uaudio_bulk_write_callback()
Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D55918
This commit is contained in:
@@ -5805,9 +5805,7 @@ umidi_bulk_write_callback(struct usb_xfer *xfer, usb_error_t error)
|
||||
}
|
||||
}
|
||||
|
||||
chan->curr_cable++;
|
||||
if (chan->curr_cable >= chan->max_emb_jack)
|
||||
chan->curr_cable = 0;
|
||||
chan->curr_cable %= chan->max_emb_jack;
|
||||
|
||||
if (chan->curr_cable == start_cable) {
|
||||
if (tr_any == 0)
|
||||
|
||||
Reference in New Issue
Block a user