qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Fam Zheng <famz@redhat.com>
To: Jun Li <junmuzi@gmail.com>
Cc: qemu-trivial@nongnu.org, juli@redhat.com, qemu-devel@nongnu.org,
	kraxel@redhat.com
Subject: Re: [Qemu-devel] [PATCH] usb: delete redundant brackets in usb_host_handle_control()
Date: Wed, 19 Nov 2014 15:09:16 +0800	[thread overview]
Message-ID: <20141119070916.GA9314@fam-t430.nay.redhat.com> (raw)
In-Reply-To: <1416380263-1274-1-git-send-email-junmuzi@gmail.com>

On Wed, 11/19 14:57, Jun Li wrote:
> 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>
> ---
>  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;
>      }
> -- 
> 1.9.3
> 
> 

Reviewed-by: Fam Zheng <famz@redhat.com>

Cc'ing qemu-trivial@nongnu.org.

Fam

  reply	other threads:[~2014-11-19  7:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-19  6:57 [Qemu-devel] [PATCH] usb: delete redundant brackets in usb_host_handle_control() Jun Li
2014-11-19  7:09 ` Fam Zheng [this message]
2014-12-10  8:24   ` [Qemu-devel] [Qemu-trivial] " Michael Tokarev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20141119070916.GA9314@fam-t430.nay.redhat.com \
    --to=famz@redhat.com \
    --cc=juli@redhat.com \
    --cc=junmuzi@gmail.com \
    --cc=kraxel@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-trivial@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).