Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

usb: core: remove flags variable in __usb_hcd_giveback_urb()

In commit ed194d1367698 ("usb: core: remove local_irq_save() around
->complete() handler") I removed the only user of the flags variable and
forgot to remove the variable, leading to warning because it is unused
now.
Remove the unused variable.

Fixes: ed194d1367698 ("usb: core: remove local_irq_save() around ->complete() handler")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Sebastian Andrzej Siewior and committed by
Greg Kroah-Hartman
d6142b91 0a6ab90c

-1
-1
drivers/usb/core/hcd.c
··· 1738 1738 struct usb_hcd *hcd = bus_to_hcd(urb->dev->bus); 1739 1739 struct usb_anchor *anchor = urb->anchor; 1740 1740 int status = urb->unlinked; 1741 - unsigned long flags; 1742 1741 1743 1742 urb->hcpriv = NULL; 1744 1743 if (unlikely((urb->transfer_flags & URB_SHORT_NOT_OK) &&