[U-Boot] [PATCH 1/2] net/eth.c: make eth_get_dev_by_name(NULL) safe

Mike Frysinger vapier at gentoo.org
Thu Jul 14 19:58:50 CEST 2011


On Thursday, July 14, 2011 05:14:07 Helmut Raiger wrote:
> On 07/13/2011 01:46 PM, Detlev Zundel wrote:
> >> The NDEBUG approach however, as Mike suggested,  was what I was
> >> looking for in the first place.
> 
> Again, not so great. U-boot uses all kinds of assert(), BUG_ON(),
> ASSERT() all over the place.
> This probably needs a project wide effort, which is why I simply threw
> in my NULL pointer check.

we tend to look at the long term picture with the best/correct solution rather 
than one-offs which get thrown away in the end
-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/20110714/b9de94e6/attachment.pgp 


More information about the U-Boot mailing list