public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Sarah Sharp <sarah.a.sharp@intel.com>
To: sifram rajas <sifram.rajas@gmail.com>
Cc: "linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] xhci: Redundant check for
Date: Mon, 22 Aug 2011 08:55:29 -0700	[thread overview]
Message-ID: <20110822155529.GA4783@xanatos> (raw)
In-Reply-To: <CA+OjSzyMGBsjCmwAgrFDkX3uphD9ya8DBGQw1nVktoKX=wpDHQ@mail.gmail.com>

Hi Sifram,


On Mon, Aug 22, 2011 at 08:35:20AM -0700, sifram rajas wrote:
> Hi Sarah,
> 
> This patch is for linux-3.0.3.
> 
> In the xhci_check_args() function in xhci.c, there is a redundant
> check for xhci->devs.
> 
> This is redundant because the struct xhci_hcd->devs is actually
> defined as a static array
> of pointers and is not a pointer to a pointer.

Your patch looks fine, and I'll apply it to my usb-next branch later
this week.

However, can you please send future patches to
sarah.a.sharp@linux.intel.com, not my intel.com address?  The intel.com
one runs through a horrible exchange server that converts tabs to spaces
and makes it impossible to apply patches.

Where did you find the intel.com email address?  I'm pretty sure the
MAINTAINERS file lists the linux.intel.com one, and I'd like to make
sure people aren't getting bad information.

Sarah Sharp

> Signed-off-by: Sifram Rajas <sifram.rajas@gmail.com>
> ---
> drivers/usb/host/xhci.c |   3 +--
>  1 files changed, 1 insertions(+), 2 deletions(-)
> 
> diff a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c
> --- a/drivers/usb/host/xhci.c	2011-08-17 23:27:16.000000000 +0530
> +++ b/drivers/usb/host/xhci.c	2011-08-22 20:43:34.250000000 +0530
> @@ -945,8 +945,7 @@ static int xhci_check_args(struct usb_hc
>  		return -ENODEV;
> 
>  	if (check_virt_dev) {
> -		if (!udev->slot_id || !xhci->devs
> -			|| !xhci->devs[udev->slot_id]) {
> +		if (!udev->slot_id || !xhci->devs[udev->slot_id]) {
>  			printk(KERN_DEBUG "xHCI %s called with unaddressed "
>  						"device\n", func);
>  			return -EINVAL;
> 
> Thanks,
> Sifram Rajas.

  reply	other threads:[~2011-08-22 15:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-22 15:35 [PATCH] xhci: Redundant check for sifram rajas
2011-08-22 15:55 ` Sarah Sharp [this message]
2011-08-22 18:11   ` Kautuk Consul
2011-08-23 11:30   ` Sebastian Andrzej Siewior

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=20110822155529.GA4783@xanatos \
    --to=sarah.a.sharp@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=sifram.rajas@gmail.com \
    /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