diff options
author | Corentin Labbe <clabbe@baylibre.com> | 2017-12-26 14:33:50 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-01-02 11:33:21 -0500 |
commit | 576ec7fd93c32d1ec56dcf69099848da81e4ec4c (patch) | |
tree | 45b3361f768e3eb559435885a4b8f6d5632aba5b /drivers/usb/musb | |
parent | 01f1918833e4817fdb0810306c021c5cbee775d3 (diff) |
usb: musb: remove unused frame variable
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>
Signed-off-by: Bin Liu <b-liu@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/musb')
-rw-r--r-- | drivers/usb/musb/musb_host.c | 2 |
1 files changed, 0 insertions, 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) | |||
195 | static void | 195 | static void |
196 | musb_start_urb(struct musb *musb, int is_in, struct musb_qh *qh) | 196 | musb_start_urb(struct musb *musb, int is_in, struct musb_qh *qh) |
197 | { | 197 | { |
198 | u16 frame; | ||
199 | u32 len; | 198 | u32 len; |
200 | void __iomem *mbase = musb->mregs; | 199 | void __iomem *mbase = musb->mregs; |
201 | struct urb *urb = next_urb(qh); | 200 | struct urb *urb = next_urb(qh); |
@@ -244,7 +243,6 @@ musb_start_urb(struct musb *musb, int is_in, struct musb_qh *qh) | |||
244 | case USB_ENDPOINT_XFER_ISOC: | 243 | case USB_ENDPOINT_XFER_ISOC: |
245 | case USB_ENDPOINT_XFER_INT: | 244 | case USB_ENDPOINT_XFER_INT: |
246 | musb_dbg(musb, "check whether there's still time for periodic Tx"); | 245 | musb_dbg(musb, "check whether there's still time for periodic Tx"); |
247 | frame = musb_readw(mbase, MUSB_FRAME); | ||
248 | /* FIXME this doesn't implement that scheduling policy ... | 246 | /* FIXME this doesn't implement that scheduling policy ... |
249 | * or handle framecounter wrapping | 247 | * or handle framecounter wrapping |
250 | */ | 248 | */ |