[U-Boot] [PATCH] usb: dwc2_udc_otg: remove the driver_desc as unused variable
Jaehoon Chung
jh80.chung at samsung.com
Thu Dec 15 06:21:59 CET 2016
On 12/15/2016 11:12 AM, Marek Vasut wrote:
> On 12/15/2016 03:02 AM, Jaehoon Chung wrote:
>> This patch fixes for the below warning.
>>
>> 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: Jaehoon Chung <jh80.chung at samsung.com>
>
> Masahiro already sent such patch, thanks though.
Oh, i didn't know that. Thanks for noticing it.
Best Regards,
Jaehoon Chung
>
>> ---
>> 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*/
>>
>
>
More information about the U-Boot
mailing list