Skip to contentSkip to conversation

staging: emxx_udc: remove unused variable driver_desc

PATCH In review Sean Behan 2 participants 2 messages Feb 17, 2021 Staging

lore
Share & tools
lore

Sean Behan

author
#0 lore raw

PATCH 1/1 staging: emxx_udc: remove unused variable driver_desc

When building with W=1, there is a warning that this variable is unused.

It is not used so remove it to fix the warning.

Thanks to [email protected] for helping me submit my first patch.

---
 drivers/staging/emxx_udc/emxx_udc.c | 1 -
 1 file changed, 1 deletion(-)
drivers/staging/emxx_udc/emxx_udc.c +0 -1
index 3536c03ff523..741147a4f0fe 100644
@@ -38,7 +38,6 @@ static struct gpio_desc *vbus_gpio;
 static int vbus_irq;
 
 static const char	driver_name[] = "emxx_udc";
-static const char	driver_desc[] = DRIVER_DESC;
 
 /*===========================================================================*/
 /* Prototype */
Signature · 1 line
2.29.2
#1 lore raw
Quoted 5 lines · Sean Behan

When building with W=1, there is a warning that this variable is unused.

It is not used so remove it to fix the warning.

Thanks to [email protected] for helping me submit my first patch.

This is nice, but is it needed in the changelog text? Please put it below the --- line when you resend.

thanks,

greg k-h