[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-trivial] [PULL 06/20] usb: delete redundant brackets in usb_host_h
From: |
Michael Tokarev |
Subject: |
[Qemu-trivial] [PULL 06/20] usb: delete redundant brackets in usb_host_handle_control() |
Date: |
Thu, 11 Dec 2014 21:15:54 +0300 |
From: lijun <address@hidden>
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 <address@hidden>
Reviewed-by: Fam Zheng <address@hidden>
Signed-off-by: Michael Tokarev <address@hidden>
---
hw/usb/host-libusb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/usb/host-libusb.c b/hw/usb/host-libusb.c
index a5f9dab..cff4f7c 100644
--- a/hw/usb/host-libusb.c
+++ b/hw/usb/host-libusb.c
@@ -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;
}
--
2.1.3
- [Qemu-trivial] [PULL 00/20] Trivial patches for 2014-12-11, Michael Tokarev, 2014/12/11
- [Qemu-trivial] [PULL 05/20] virtio-bus: avoid breaking build when open DEBUG switch, Michael Tokarev, 2014/12/11
- [Qemu-trivial] [PULL 04/20] acpi-build: Make DPRINTF working for acpi-build, Michael Tokarev, 2014/12/11
- [Qemu-trivial] [PULL 03/20] acpi-build: adjust indention 8 -> 4 spaces, Michael Tokarev, 2014/12/11
- [Qemu-trivial] [PULL 02/20] target-s390x: fix possible out of bounds read, Michael Tokarev, 2014/12/11
- [Qemu-trivial] [PULL 06/20] usb: delete redundant brackets in usb_host_handle_control(),
Michael Tokarev <=
- [Qemu-trivial] [PULL 15/20] qapi-schema: fix typo about change-vnc-password, Michael Tokarev, 2014/12/11
- [Qemu-trivial] [PULL 07/20] Drop superfluous conditionals around qemu_opts_del(), Michael Tokarev, 2014/12/11
- [Qemu-trivial] [PULL 14/20] fw_cfg: remove superfluous blank line, Michael Tokarev, 2014/12/11
- [Qemu-trivial] [PULL 01/20] qmp: fix typo in input-send-event examples, Michael Tokarev, 2014/12/11
- [Qemu-trivial] [PULL 19/20] hpet: increase spelling precision, Michael Tokarev, 2014/12/11
- [Qemu-trivial] [PULL 13/20] get_maintainer.pl: Remove the --git-chief-penguins option, Michael Tokarev, 2014/12/11
- [Qemu-trivial] [PULL 11/20] util: Use g_new() & friends where that makes obvious sense, Michael Tokarev, 2014/12/11
- [Qemu-trivial] [PULL 18/20] pflash_cfi02.c: associate "cfi.pflash02" to "Storage devices" category, Michael Tokarev, 2014/12/11
- [Qemu-trivial] [PULL 16/20] virtio: remove useless declaration of virtio_net_init(), Michael Tokarev, 2014/12/11
- [Qemu-trivial] [PULL 10/20] util: Fuse g_malloc(); memset() into g_new0(), Michael Tokarev, 2014/12/11