diff mbox

usb: dwc2-otg: remove unused variable

Message ID 1481693412-32139-1-git-send-email-yamada.masahiro@socionext.com
State Accepted
Commit 59ef20303a54305b978453d5cc88f9aea2486021
Headers show

Commit Message

Masahiro Yamada Dec. 14, 2016, 5:30 a.m. UTC
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;
                   ^~~~~~~~~~~

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>

---

 drivers/usb/gadget/dwc2_udc_otg.c | 2 --
 1 file changed, 2 deletions(-)

-- 
2.7.4

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Comments

Marek Vasut Dec. 14, 2016, 8:13 a.m. UTC | #1
On 12/14/2016 06:30 AM, Masahiro Yamada wrote:
> 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;

>                    ^~~~~~~~~~~

> 

> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>


Acked-by: Marek Vasut <marex@denx.de>


Applied too, thanks.

> ---

> 

>  drivers/usb/gadget/dwc2_udc_otg.c | 2 --

>  1 file changed, 2 deletions(-)

> 

> diff --git a/drivers/usb/gadget/dwc2_udc_otg.c b/drivers/usb/gadget/dwc2_udc_otg.c

> index d72bfdf..cb44374 100644

> --- a/drivers/usb/gadget/dwc2_udc_otg.c

> +++ b/drivers/usb/gadget/dwc2_udc_otg.c

> @@ -63,13 +63,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*/

> 



-- 
Best regards,
Marek Vasut
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
diff mbox

Patch

diff --git a/drivers/usb/gadget/dwc2_udc_otg.c b/drivers/usb/gadget/dwc2_udc_otg.c
index d72bfdf..cb44374 100644
--- a/drivers/usb/gadget/dwc2_udc_otg.c
+++ b/drivers/usb/gadget/dwc2_udc_otg.c
@@ -63,13 +63,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*/