diff options
| author | Hans Petter Selasky <hselasky@FreeBSD.org> | 2020-06-09 22:15:45 +0000 |
|---|---|---|
| committer | Hans Petter Selasky <hselasky@FreeBSD.org> | 2020-06-09 22:15:45 +0000 |
| commit | adbe94a5773e71d863c94185977f43d26f6edde8 (patch) | |
| tree | cc7e3bf657e0187c5f268801e4c24883dc58a4c5 /sys | |
| parent | 5751b9b781602c5be8abd93f1a91c964925f84ad (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/dev/usb/usb_transfer.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/usb/usb_transfer.c b/sys/dev/usb/usb_transfer.c index 04f306fc3162..8a3855a9c05a 100644 --- a/sys/dev/usb/usb_transfer.c +++ b/sys/dev/usb/usb_transfer.c @@ -354,8 +354,7 @@ usbd_get_max_frame_length(const struct usb_endpoint_descriptor *edesc, if (ecomp != NULL) { uint8_t mult; - mult = UE_GET_SS_ISO_MULT( - ecomp->bmAttributes) + 1; + mult = (ecomp->bmAttributes & 3) + 1; if (mult > 3) mult = 3; |
