Previously overlooked magic value in commit a40db6d51171 ("net: cosmetic: Do not use magic values for ARP_HLEN")
Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- net/eth_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/eth_common.c b/net/eth_common.c index 58fa295771..049c1ee6f9 100644 --- a/net/eth_common.c +++ b/net/eth_common.c @@ -17,7 +17,7 @@ void eth_parse_enetaddr(const char *addr, uchar *enetaddr) char *end; int i; - for (i = 0; i < 6; ++i) { + for (i = 0; i < ARP_HLEN; ++i) { enetaddr[i] = addr ? simple_strtoul(addr, &end, 16) : 0; if (addr) addr = (*end) ? end + 1 : end; -- 2.11.0 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot