usb: dwc2-otg: remove unused variable
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 14 Dec 2016 05:30:12 +0000 (14:30 +0900)
committerJaewon Kim <jaewon02.kim@samsung.com>
Tue, 9 Jan 2018 07:04:36 +0000 (16:04 +0900)
GCC 6.1 complains about this.

drivers/usb/gadget/dwc2_udc_otg.c:72:19: warning: 'driver_desc'
defined but not used [-Wunused-const-variable=]
 static const char driver_desc[] = DRIVER_DESC;
                   ^~~~~~~~~~~

Change-Id: I5daecf50e2cef6a4a785091f847d8a39199e299b
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
drivers/usb/gadget/dwc2_udc_otg.c

index aba54a2b2585202c9bd4996c95201d3ac25eb19e..31556ad72ebc7eeab1ff83dec1d7d2acce3db6b3 100644 (file)
@@ -67,13 +67,11 @@ static char *state_names[] = {
        "WAIT_FOR_NULL_COMPLETE",
 };
 
-#define DRIVER_DESC "DWC2 HS USB OTG Device Driver, (c) Samsung Electronics"
 #define DRIVER_VERSION "15 March 2009"
 
 struct dwc2_udc        *the_controller;
 
 static const char driver_name[] = "dwc2-udc";
-static const char driver_desc[] = DRIVER_DESC;
 static const char ep0name[] = "ep0-control";
 
 /* Max packet size*/