[U-Boot] [PATCH] drivers/net/e1000.c: Fix GCC 4.6 build warnings
Mike Frysinger
vapier at gentoo.org
Tue Dec 20 18:20:40 CET 2011
On Tuesday 20 December 2011 11:07:30 Moffett, Kyle D wrote:
> On Dec 20, 2011, at 10:49, Anatolij Gustschin wrote:
> > #ifdef CONFIG_E1000_FALLBACK_MAC
> > - if ( *(u32*)(nic->enetaddr) == 0 || *(u32*)(nic->enetaddr) == ~0 ) {
> > + if (get_unaligned_be32(nic->enetaddr) == 0 ||
> > + get_unaligned_be32(nic->enetaddr) == ~0) {
> >
> > unsigned char fb_mac[NODE_ADDRESS_SIZE] = CONFIG_E1000_FALLBACK_MAC;
> >
> > memcpy (nic->enetaddr, fb_mac, NODE_ADDRESS_SIZE);
>
> No, if you are going to fix this code then make it use the right
> function for the job: is_valid_ether_addr()
+1
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20111220/ff4a1c87/attachment.pgp>
More information about the U-Boot
mailing list