usb: core: fix compile warning
PATCH 1/1 usb: core: fix compile warning
Fix the following compile warning:
warning: unused variable ‘flags’ [-Wunused-variable]
unsigned long flags;
Fixes ed194d136769 ("usb: core: remove local_irq_save() around ->complete() handler")
Signed-off-by Gustavo A. R. Silva <[email protected]>
--- drivers/usb/core/hcd.c | 1 - 1 file changed, 1 deletion(-)
drivers/usb/core/hcd.c +0 -1
@@ -1738,7 +1738,6 @@ static void __usb_hcd_giveback_urb(struct urb *urb)struct usb_hcd *hcd =bus_to_hcd (urb->dev->bus);struct usb_anchor *anchor = urb->anchor;int status = urb->unlinked; -unsigned long flags; urb->hcpriv =NULL ; if (unlikely((urb->transfer_flags & URB_SHORT_NOT_OK) &&
Greg Kroah-Hartman
maintainerQuoted 10 lines · Gustavo A. R. Silva
Fix the following compile warning:
warning: unused variable ‘flags’ [-Wunused-variable]
unsigned long flags;Fixes ed194d136769 ("usb: core: remove local_irq_save() around ->complete() handler")Signed-off-by Gustavo A. R. Silva <[email protected]>--- drivers/usb/core/hcd.c | 1 - 1 file changed, 1 deletion(-)
I can't believe I missed this :(
Someone else sent this right before you, I'll add your s-o-b to that patch as well.
thanks,
greg k-h