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

Helmut Raiger
2011-07-14T09:14:07Z

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.
> Great!
> Detlev
>

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.

Helmut

--
Scanned by MailScanner.