All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] musb: remove unused frame variable
@ 2017-11-15 19:20 Corentin Labbe
  2017-11-15 19:20 ` [PATCH 2/2] musb: remove unused pipe variable Corentin Labbe
  2017-11-16 16:54 ` [PATCH 1/2] musb: remove unused frame variable Bin Liu
  0 siblings, 2 replies; 4+ messages in thread
From: Corentin Labbe @ 2017-11-15 19:20 UTC (permalink / raw)
  To: b-liu, gregkh; +Cc: linux-usb, linux-kernel, Corentin Labbe

This patch fix the following warning
drivers/usb/musb/musb_host.c:223:8: warning: variable 'frame' set but not used [-Wunused-but-set-variable]
by remove the frame variable in musb_start_urb().

Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
---
 drivers/usb/musb/musb_host.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/usb/musb/musb_host.c b/drivers/usb/musb/musb_host.c
index 2627363fb4fe..aa573ab99384 100644
--- a/drivers/usb/musb/musb_host.c
+++ b/drivers/usb/musb/musb_host.c
@@ -195,7 +195,6 @@ static struct musb_qh *musb_ep_get_qh(struct musb_hw_ep *ep, int is_in)
 static void
 musb_start_urb(struct musb *musb, int is_in, struct musb_qh *qh)
 {
-	u16			frame;
 	u32			len;
 	void __iomem		*mbase =  musb->mregs;
 	struct urb		*urb = next_urb(qh);
@@ -244,7 +243,6 @@ musb_start_urb(struct musb *musb, int is_in, struct musb_qh *qh)
 	case USB_ENDPOINT_XFER_ISOC:
 	case USB_ENDPOINT_XFER_INT:
 		musb_dbg(musb, "check whether there's still time for periodic Tx");
-		frame = musb_readw(mbase, MUSB_FRAME);
 		/* FIXME this doesn't implement that scheduling policy ...
 		 * or handle framecounter wrapping
 		 */
-- 
2.13.6

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] musb: remove unused pipe variable
  2017-11-15 19:20 [PATCH 1/2] musb: remove unused frame variable Corentin Labbe
@ 2017-11-15 19:20 ` Corentin Labbe
  2017-11-16 16:54   ` Bin Liu
  2017-11-16 16:54 ` [PATCH 1/2] musb: remove unused frame variable Bin Liu
  1 sibling, 1 reply; 4+ messages in thread
From: Corentin Labbe @ 2017-11-15 19:20 UTC (permalink / raw)
  To: b-liu, gregkh; +Cc: linux-usb, linux-kernel, Corentin Labbe

This patch fix the following build warning:
drivers/usb/musb/musb_host.c:1809:8: warning: variable 'pipe' set but not used [-Wunused-but-set-variable]
by removing the pipe variable in musb_host_rx()

Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
---
 drivers/usb/musb/musb_host.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/usb/musb/musb_host.c b/drivers/usb/musb/musb_host.c
index aa573ab99384..394b4ac86161 100644
--- a/drivers/usb/musb/musb_host.c
+++ b/drivers/usb/musb/musb_host.c
@@ -1779,7 +1779,6 @@ void musb_host_rx(struct musb *musb, u8 epnum)
 	struct musb_qh		*qh = hw_ep->in_qh;
 	size_t			xfer_len;
 	void __iomem		*mbase = musb->mregs;
-	int			pipe;
 	u16			rx_csr, val;
 	bool			iso_err = false;
 	bool			done = false;
@@ -1808,8 +1807,6 @@ void musb_host_rx(struct musb *musb, u8 epnum)
 		return;
 	}
 
-	pipe = urb->pipe;
-
 	trace_musb_urb_rx(musb, urb);
 
 	/* check for errors, concurrent stall & unlink is not really
-- 
2.13.6

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/2] musb: remove unused frame variable
  2017-11-15 19:20 [PATCH 1/2] musb: remove unused frame variable Corentin Labbe
  2017-11-15 19:20 ` [PATCH 2/2] musb: remove unused pipe variable Corentin Labbe
@ 2017-11-16 16:54 ` Bin Liu
  1 sibling, 0 replies; 4+ messages in thread
From: Bin Liu @ 2017-11-16 16:54 UTC (permalink / raw)
  To: Corentin Labbe; +Cc: gregkh, linux-usb, linux-kernel

Hi,

On Wed, Nov 15, 2017 at 07:20:34PM +0000, Corentin Labbe wrote:
> This patch fix the following warning
> drivers/usb/musb/musb_host.c:223:8: warning: variable 'frame' set but not used [-Wunused-but-set-variable]
> by remove the frame variable in musb_start_urb().
> 
> Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
> ---
>  drivers/usb/musb/musb_host.c | 2 --
>  1 file changed, 2 deletions(-)

Applied. it will be pushed out for v4.16-rc1.

Thanks,
-Bin.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 2/2] musb: remove unused pipe variable
  2017-11-15 19:20 ` [PATCH 2/2] musb: remove unused pipe variable Corentin Labbe
@ 2017-11-16 16:54   ` Bin Liu
  0 siblings, 0 replies; 4+ messages in thread
From: Bin Liu @ 2017-11-16 16:54 UTC (permalink / raw)
  To: Corentin Labbe; +Cc: gregkh, linux-usb, linux-kernel

Hi,

On Wed, Nov 15, 2017 at 07:20:35PM +0000, Corentin Labbe wrote:
> This patch fix the following build warning:
> drivers/usb/musb/musb_host.c:1809:8: warning: variable 'pipe' set but not used [-Wunused-but-set-variable]
> by removing the pipe variable in musb_host_rx()
> 
> Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
> ---
>  drivers/usb/musb/musb_host.c | 3 ---
>  1 file changed, 3 deletions(-)

Applied. It will be pushed out for v4.16-rc1.

Thanks,
-Bin.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-11-16 16:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-15 19:20 [PATCH 1/2] musb: remove unused frame variable Corentin Labbe
2017-11-15 19:20 ` [PATCH 2/2] musb: remove unused pipe variable Corentin Labbe
2017-11-16 16:54   ` Bin Liu
2017-11-16 16:54 ` [PATCH 1/2] musb: remove unused frame variable Bin Liu

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.