public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Felipe Balbi <balbi@ti.com>
To: Kris Borer <kborer@gmail.com>
Cc: <gregkh@linuxfoundation.org>, <stern@rowland.harvard.edu>,
	<pmladek@suse.cz>, <peter.chen@freescale.com>, <balbi@ti.com>,
	<mjg59@coreos.com>, <chasemetzger15@gmail.com>,
	<Robert.Schlabbach@gmx.net>, <jin.can.zhuang@intel.com>,
	<linux-usb@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] usb: hub: remove redundant declarations
Date: Fri, 21 Aug 2015 09:39:36 -0500	[thread overview]
Message-ID: <20150821143936.GA527@saruman.tx.rr.com> (raw)
In-Reply-To: <1440167160-8527-1-git-send-email-kborer@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1239 bytes --]

On Fri, Aug 21, 2015 at 10:26:00AM -0400, Kris Borer wrote:
> Fix two occurrences of the Sparse warning:
> 
> warning: symbol XXX shadows an earlier one
> 
> Signed-off-by: Kris Borer <kborer@gmail.com>

Reviewed-by: Felipe Balbi <balbi@ti.com>

> ---
>  drivers/usb/core/hub.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c
> index 431839b..a0db6a4 100644
> --- a/drivers/usb/core/hub.c
> +++ b/drivers/usb/core/hub.c
> @@ -1070,7 +1070,7 @@ static void hub_activate(struct usb_hub *hub, enum hub_activation_type type)
>  		 * for HUB_POST_RESET, but it's easier not to.
>  		 */
>  		if (type == HUB_INIT) {
> -			unsigned delay = hub_power_on_good_delay(hub);
> +			delay = hub_power_on_good_delay(hub);
>  
>  			hub_power_on(hub, false);
>  			INIT_DELAYED_WORK(&hub->init_work, hub_init_func2);
> @@ -1404,7 +1404,6 @@ static int hub_configure(struct usb_hub *hub,
>  	/* FIXME for USB 3.0, skip for now */
>  	if ((wHubCharacteristics & HUB_CHAR_COMPOUND) &&
>  			!(hub_is_superspeed(hdev))) {
> -		int	i;
>  		char	portstr[USB_MAXCHILDREN + 1];
>  
>  		for (i = 0; i < maxchild; i++)
> -- 
> 1.9.1
> 

-- 
balbi

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

      reply	other threads:[~2015-08-21 14:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-21 14:26 [PATCH] usb: hub: remove redundant declarations Kris Borer
2015-08-21 14:39 ` Felipe Balbi [this message]

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=20150821143936.GA527@saruman.tx.rr.com \
    --to=balbi@ti.com \
    --cc=Robert.Schlabbach@gmx.net \
    --cc=chasemetzger15@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=jin.can.zhuang@intel.com \
    --cc=kborer@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=mjg59@coreos.com \
    --cc=peter.chen@freescale.com \
    --cc=pmladek@suse.cz \
    --cc=stern@rowland.harvard.edu \
    /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