[U-Boot-Users] What if eth_init() fails?
Wolfgang Denk
wd at denx.de
Mon Nov 19 14:26:29 CET 2007
In message <8FCC6A94CA3DF74CB89E1044DBFB0BF803D8AB at NOIDA-MAIL2.bbnet.ad> you wrote:
>
...
> But on second thoughts, yes, logically, it would be best to leave the
> Netloop() code as it is:
>
> if (eth_init(bd) < 0) ... /* error handling */
>
> and modify the code in eth.c file to make it return a negative code in
> case of errors, to somewhat like this:
OK. Will you submit a patch, please?
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Unix is supported by IBM, like a hanging man is supported by rope.
- Don Libes & Sandy Ressler: _Life With Unix_
More information about the U-Boot
mailing list