From: oliver@schinagl.nl Date: Fri, 25 Nov 2016 15:30:21 +0000 (+0100) Subject: net: cosmetic: Define ethernet name length X-Git-Tag: v2017.03-rc2~10^2~14 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2c07c3299467e2313d6764ed28db62e8fcc77ccf;p=u-boot net: cosmetic: Define ethernet name length There are various places where the ethernet device name is defined to several different sizes. Lets add a define and start using it. Signed-off-by: Olliver Schinagl Acked-by: Joe Hershberger --- diff --git a/include/net.h b/include/net.h index c3bfb63782..ed5259a807 100644 --- a/include/net.h +++ b/include/net.h @@ -168,7 +168,8 @@ void eth_halt_state_only(void); /* Set passive state */ #ifndef CONFIG_DM_ETH struct eth_device { - char name[16]; +#define ETH_NAME_LEN 16 + char name[ETH_NAME_LEN]; unsigned char enetaddr[ARP_HLEN]; phys_addr_t iobase; int state;