[U-Boot] [PATCH 12/12] usb: gadget: remove unused shortname variable
Lukasz Majewski
l.majewski at samsung.com
Wed Nov 16 12:49:40 CET 2016
Hi Andre,
> The shortname variable isn't referenced anywhere in the code, so just
> remove it.
>
> Pointed out by a GCC 6.2 default warning option.
>
> Signed-off-by: Andre Przywara <andre.przywara at arm.com>
> ---
> drivers/usb/gadget/ether.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/drivers/usb/gadget/ether.c b/drivers/usb/gadget/ether.c
> index 497b981..a210d33 100644
> --- a/drivers/usb/gadget/ether.c
> +++ b/drivers/usb/gadget/ether.c
> @@ -76,7 +76,6 @@ unsigned packet_received, packet_sent;
> /* Based on linux 2.6.27 version */
> #define DRIVER_VERSION "May Day 2005"
>
> -static const char shortname[] = "ether";
> static const char driver_desc[] = DRIVER_DESC;
>
> #define RX_EXTRA 20 /* guard against rx
> overflows */
Acked-by: Lukasz Majewski <l.majewski at samsung.com>
--
Best regards,
Lukasz Majewski
Samsung R&D Institute Poland (SRPOL) | Linux Platform Group
More information about the U-Boot
mailing list