staging: emxx_udc: remove unused variable driver_desc
diff mbox series

Message ID 20210217142420.7350-1-codebam@riseup.net
State Accepted
Commit 72fd8d532404e520c9880ae1295c09543c1ca85e
Headers show
Series
  • staging: emxx_udc: remove unused variable driver_desc
Related show

Commit Message

Sean Behan Feb. 17, 2021, 2:24 p.m. UTC
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 nathan@kernel.org for helping me submit my first patch.

Signed-off-by: Sean Behan <codebam@riseup.net>
---
 drivers/staging/emxx_udc/emxx_udc.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Greg KH Feb. 17, 2021, 2:37 p.m. UTC | #1
On Wed, Feb 17, 2021 at 09:24:17AM -0500, Sean Behan wrote:
> 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 nathan@kernel.org 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

Patch
diff mbox series

diff --git a/drivers/staging/emxx_udc/emxx_udc.c b/drivers/staging/emxx_udc/emxx_udc.c
index 3536c03ff523..741147a4f0fe 100644
--- a/drivers/staging/emxx_udc/emxx_udc.c
+++ b/drivers/staging/emxx_udc/emxx_udc.c
@@ -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 */