All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alan Stern <stern@rowland.harvard.edu>
To: Colin King <colin.king@canonical.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	<linux-usb@vger.kernel.org>, <kernel-janitors@vger.kernel.org>,
	<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] usb: host: ehci-sched: remove redundant pointer dev
Date: Fri, 13 Jul 2018 16:17:46 -0400 (EDT)	[thread overview]
Message-ID: <Pine.LNX.4.44L0.1807131617360.10216-100000@netrider.rowland.org> (raw)
In-Reply-To: <20180713092956.13247-1-colin.king@canonical.com>

On Fri, 13 Jul 2018, Colin King wrote:

> From: Colin Ian King <colin.king@canonical.com>
> 
> Pointer dev is being assigned but is never used hence it is
> redundant and can be removed.
> 
> Cleans up clang warning:
> warning: variable 'dev' set but not used [-Wunused-but-set-variable]
> 
> Signed-off-by: Colin Ian King <colin.king@canonical.com>
> ---
>  drivers/usb/host/ehci-sched.c | 4 ----
>  1 file changed, 4 deletions(-)
> 
> diff --git a/drivers/usb/host/ehci-sched.c b/drivers/usb/host/ehci-sched.c
> index 1d87295682b8..da7b00a6110b 100644
> --- a/drivers/usb/host/ehci-sched.c
> +++ b/drivers/usb/host/ehci-sched.c
> @@ -1835,7 +1835,6 @@ static bool itd_complete(struct ehci_hcd *ehci, struct ehci_itd *itd)
>  	unsigned				uframe;
>  	int					urb_index = -1;
>  	struct ehci_iso_stream			*stream = itd->stream;
> -	struct usb_device			*dev;
>  	bool					retval = false;
>  
>  	/* for each uframe with a packet */
> @@ -1886,7 +1885,6 @@ static bool itd_complete(struct ehci_hcd *ehci, struct ehci_itd *itd)
>  	 */
>  
>  	/* give urb back to the driver; completion often (re)submits */
> -	dev = urb->dev;
>  	ehci_urb_done(ehci, urb, 0);
>  	retval = true;
>  	urb = NULL;
> @@ -2230,7 +2228,6 @@ static bool sitd_complete(struct ehci_hcd *ehci, struct ehci_sitd *sitd)
>  	u32					t;
>  	int					urb_index;
>  	struct ehci_iso_stream			*stream = sitd->stream;
> -	struct usb_device			*dev;
>  	bool					retval = false;
>  
>  	urb_index = sitd->index;
> @@ -2268,7 +2265,6 @@ static bool sitd_complete(struct ehci_hcd *ehci, struct ehci_sitd *sitd)
>  	 */
>  
>  	/* give urb back to the driver; completion often (re)submits */
> -	dev = urb->dev;
>  	ehci_urb_done(ehci, urb, 0);
>  	retval = true;
>  	urb = NULL;

Acked-by: Alan Stern <stern@rowland.harvard.edu>


WARNING: multiple messages have this Message-ID (diff)
From: Alan Stern <stern@rowland.harvard.edu>
To: Colin King <colin.king@canonical.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	linux-usb@vger.kernel.org, kernel-janitors@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] usb: host: ehci-sched: remove redundant pointer dev
Date: Fri, 13 Jul 2018 20:17:46 +0000	[thread overview]
Message-ID: <Pine.LNX.4.44L0.1807131617360.10216-100000@netrider.rowland.org> (raw)
In-Reply-To: <20180713092956.13247-1-colin.king@canonical.com>

On Fri, 13 Jul 2018, Colin King wrote:

> From: Colin Ian King <colin.king@canonical.com>
> 
> Pointer dev is being assigned but is never used hence it is
> redundant and can be removed.
> 
> Cleans up clang warning:
> warning: variable 'dev' set but not used [-Wunused-but-set-variable]
> 
> Signed-off-by: Colin Ian King <colin.king@canonical.com>
> ---
>  drivers/usb/host/ehci-sched.c | 4 ----
>  1 file changed, 4 deletions(-)
> 
> diff --git a/drivers/usb/host/ehci-sched.c b/drivers/usb/host/ehci-sched.c
> index 1d87295682b8..da7b00a6110b 100644
> --- a/drivers/usb/host/ehci-sched.c
> +++ b/drivers/usb/host/ehci-sched.c
> @@ -1835,7 +1835,6 @@ static bool itd_complete(struct ehci_hcd *ehci, struct ehci_itd *itd)
>  	unsigned				uframe;
>  	int					urb_index = -1;
>  	struct ehci_iso_stream			*stream = itd->stream;
> -	struct usb_device			*dev;
>  	bool					retval = false;
>  
>  	/* for each uframe with a packet */
> @@ -1886,7 +1885,6 @@ static bool itd_complete(struct ehci_hcd *ehci, struct ehci_itd *itd)
>  	 */
>  
>  	/* give urb back to the driver; completion often (re)submits */
> -	dev = urb->dev;
>  	ehci_urb_done(ehci, urb, 0);
>  	retval = true;
>  	urb = NULL;
> @@ -2230,7 +2228,6 @@ static bool sitd_complete(struct ehci_hcd *ehci, struct ehci_sitd *sitd)
>  	u32					t;
>  	int					urb_index;
>  	struct ehci_iso_stream			*stream = sitd->stream;
> -	struct usb_device			*dev;
>  	bool					retval = false;
>  
>  	urb_index = sitd->index;
> @@ -2268,7 +2265,6 @@ static bool sitd_complete(struct ehci_hcd *ehci, struct ehci_sitd *sitd)
>  	 */
>  
>  	/* give urb back to the driver; completion often (re)submits */
> -	dev = urb->dev;
>  	ehci_urb_done(ehci, urb, 0);
>  	retval = true;
>  	urb = NULL;

Acked-by: Alan Stern <stern@rowland.harvard.edu>


WARNING: multiple messages have this Message-ID (diff)
From: Alan Stern <stern@rowland.harvard.edu>
To: Colin King <colin.king@canonical.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	linux-usb@vger.kernel.org, kernel-janitors@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: usb: host: ehci-sched: remove redundant pointer dev
Date: Fri, 13 Jul 2018 16:17:46 -0400 (EDT)	[thread overview]
Message-ID: <Pine.LNX.4.44L0.1807131617360.10216-100000@netrider.rowland.org> (raw)

On Fri, 13 Jul 2018, Colin King wrote:

> From: Colin Ian King <colin.king@canonical.com>
> 
> Pointer dev is being assigned but is never used hence it is
> redundant and can be removed.
> 
> Cleans up clang warning:
> warning: variable 'dev' set but not used [-Wunused-but-set-variable]
> 
> Signed-off-by: Colin Ian King <colin.king@canonical.com>
> ---
>  drivers/usb/host/ehci-sched.c | 4 ----
>  1 file changed, 4 deletions(-)
> 
> diff --git a/drivers/usb/host/ehci-sched.c b/drivers/usb/host/ehci-sched.c
> index 1d87295682b8..da7b00a6110b 100644
> --- a/drivers/usb/host/ehci-sched.c
> +++ b/drivers/usb/host/ehci-sched.c
> @@ -1835,7 +1835,6 @@ static bool itd_complete(struct ehci_hcd *ehci, struct ehci_itd *itd)
>  	unsigned				uframe;
>  	int					urb_index = -1;
>  	struct ehci_iso_stream			*stream = itd->stream;
> -	struct usb_device			*dev;
>  	bool					retval = false;
>  
>  	/* for each uframe with a packet */
> @@ -1886,7 +1885,6 @@ static bool itd_complete(struct ehci_hcd *ehci, struct ehci_itd *itd)
>  	 */
>  
>  	/* give urb back to the driver; completion often (re)submits */
> -	dev = urb->dev;
>  	ehci_urb_done(ehci, urb, 0);
>  	retval = true;
>  	urb = NULL;
> @@ -2230,7 +2228,6 @@ static bool sitd_complete(struct ehci_hcd *ehci, struct ehci_sitd *sitd)
>  	u32					t;
>  	int					urb_index;
>  	struct ehci_iso_stream			*stream = sitd->stream;
> -	struct usb_device			*dev;
>  	bool					retval = false;
>  
>  	urb_index = sitd->index;
> @@ -2268,7 +2265,6 @@ static bool sitd_complete(struct ehci_hcd *ehci, struct ehci_sitd *sitd)
>  	 */
>  
>  	/* give urb back to the driver; completion often (re)submits */
> -	dev = urb->dev;
>  	ehci_urb_done(ehci, urb, 0);
>  	retval = true;
>  	urb = NULL;

Acked-by: Alan Stern <stern@rowland.harvard.edu>
---
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2018-07-13 20:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-13  9:29 [PATCH] usb: host: ehci-sched: remove redundant pointer dev Colin King
2018-07-13  9:29 ` Colin King
2018-07-13  9:29 ` [PATCH] " Colin King
2018-07-13 20:17 ` Alan Stern [this message]
2018-07-13 20:17   ` Alan Stern
2018-07-13 20:17   ` [PATCH] " Alan Stern

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=Pine.LNX.4.44L0.1807131617360.10216-100000@netrider.rowland.org \
    --to=stern@rowland.harvard.edu \
    --cc=colin.king@canonical.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=kernel-janitors@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.