Skip to contentSkip to conversation

usb: core: fix compile warning

PATCH In review Gustavo A. R. Silva 2 participants 2 messages Sep 11, 2018 USB

lore
Share & tools
lore
#0 lore raw

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")
---
 drivers/usb/core/hcd.c | 1 -
 1 file changed, 1 deletion(-)
drivers/usb/core/hcd.c +0 -1
index f985d23..487025d 100644
@@ -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) &&
#1 lore raw
Quoted 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")
---
 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