mirror of https://gitee.com/openkylin/qemu.git
usb: delete redundant brackets in usb_host_handle_control()
When see usb codes, find there are redundant brackets !((udev->port->speedmask & USB_SPEED_MASK_SUPER)) here. So delete it. Signed-off-by: Jun Li <junmuzi@gmail.com> Reviewed-by: Fam Zheng <famz@redhat.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
parent
2c80ab15e2
commit
7251711472
|
@ -1237,7 +1237,7 @@ static void usb_host_handle_control(USBDevice *udev, USBPacket *p,
|
|||
/* Fix up USB-3 ep0 maxpacket size to allow superspeed connected devices
|
||||
* to work redirected to a not superspeed capable hcd */
|
||||
if (udev->speed == USB_SPEED_SUPER &&
|
||||
!((udev->port->speedmask & USB_SPEED_MASK_SUPER)) &&
|
||||
!(udev->port->speedmask & USB_SPEED_MASK_SUPER) &&
|
||||
request == 0x8006 && value == 0x100 && index == 0) {
|
||||
r->usb3ep0quirk = true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue