[U-Boot] [PATCH 1/3] net: Adds Fast Ethernet Controller driver for Armada100

Mike Frysinger vapier at gentoo.org
Mon Aug 22 18:42:33 CEST 2011


On Monday, August 22, 2011 12:07:26 Marek Vasut wrote:
> On Monday, August 22, 2011 06:02:26 PM Mike Frysinger wrote:
> > On Monday, August 22, 2011 01:11:57 Ajay Bhargav wrote:
> > > +	darmdfec = malloc(sizeof(struct armdfec_device));
> > 
> > sizeof(*darmdfec)
> 
> Why are you against sizeof(struct ...) ?

imo, it holds up against bit rot easier and the code is clearer
-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/20110822/02ac261d/attachment.pgp 


More information about the U-Boot mailing list