X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=common%2Ffdt_support.c;h=55d4d6f6d444ef6cc4bd208efa4da58a9e11d386;hb=e9eb0cb20a12f4ef55e229555efa6e726274dfdc;hp=c9f7019e38e8de1469f506cdd57353fd27d8e134;hpb=63c0941726e44f31c42de744a57f528fee2df88f;p=oweals%2Fu-boot.git diff --git a/common/fdt_support.c b/common/fdt_support.c index c9f7019e38..55d4d6f6d4 100644 --- a/common/fdt_support.c +++ b/common/fdt_support.c @@ -473,7 +473,7 @@ void fdt_fixup_ethernet(void *fdt) char *tmp, *end; char mac[16]; const char *path; - unsigned char mac_addr[6]; + unsigned char mac_addr[ARP_HLEN]; int offset; if (fdt_path_offset(fdt, "/aliases") < 0) @@ -903,14 +903,9 @@ void fdt_fixup_mtdparts(void *blob, void *node_info, int node_info_size) { struct node_info *ni = node_info; struct mtd_device *dev; - char *parts; int i, idx; int noff; - parts = getenv("mtdparts"); - if (!parts) - return; - if (mtdparts_init() != 0) return;