Skip to content

Commit ec81419

Browse files
Colin Ian Kinggregkh
authored andcommitted
usb: host: ehci-sched: remove redundant pointer dev
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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent a99e720 commit ec81419

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

drivers/usb/host/ehci-sched.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1835,7 +1835,6 @@ static bool itd_complete(struct ehci_hcd *ehci, struct ehci_itd *itd)
18351835
unsigned uframe;
18361836
int urb_index = -1;
18371837
struct ehci_iso_stream *stream = itd->stream;
1838-
struct usb_device *dev;
18391838
bool retval = false;
18401839

18411840
/* for each uframe with a packet */
@@ -1886,7 +1885,6 @@ static bool itd_complete(struct ehci_hcd *ehci, struct ehci_itd *itd)
18861885
*/
18871886

18881887
/* give urb back to the driver; completion often (re)submits */
1889-
dev = urb->dev;
18901888
ehci_urb_done(ehci, urb, 0);
18911889
retval = true;
18921890
urb = NULL;
@@ -2230,7 +2228,6 @@ static bool sitd_complete(struct ehci_hcd *ehci, struct ehci_sitd *sitd)
22302228
u32 t;
22312229
int urb_index;
22322230
struct ehci_iso_stream *stream = sitd->stream;
2233-
struct usb_device *dev;
22342231
bool retval = false;
22352232

22362233
urb_index = sitd->index;
@@ -2268,7 +2265,6 @@ static bool sitd_complete(struct ehci_hcd *ehci, struct ehci_sitd *sitd)
22682265
*/
22692266

22702267
/* give urb back to the driver; completion often (re)submits */
2271-
dev = urb->dev;
22722268
ehci_urb_done(ehci, urb, 0);
22732269
retval = true;
22742270
urb = NULL;

0 commit comments

Comments
 (0)