Skip to contentSkip to conversation

usb: musb: remove an unused variable

PATCH New Arnd Bergmann 1 participant 1 message May 28, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 usb: musb: remove an unused variable

After the only users of this variable got removed, we now get a warning about 'otg' being unused:

drivers/usb/musb/da8xx.c: In function 'da8xx_musb_interrupt':
drivers/usb/musb/da8xx.c:226:19: error: unused variable 'otg' [-Werror=unused-variable]

Fixes d2852f2d3e6d ("usb: musb: remove references to default_a of struct usb_otg")
---
 drivers/usb/musb/da8xx.c | 1 -
 1 file changed, 1 deletion(-)
drivers/usb/musb/da8xx.c +0 -1
index 0e5929e81d26..1c023c0091c4 100644
@@ -223,7 +223,6 @@ static irqreturn_t da8xx_musb_interrupt(int irq, void *hci)
 {
 	struct musb		*musb = hci;
 	void __iomem		*reg_base = musb->ctrl_base;
-	struct usb_otg		*otg = musb->xceiv->otg;
 	unsigned long		flags;
 	irqreturn_t		ret = IRQ_NONE;
 	u32			status;