[U-Boot-Users] Return convention for eth_init() ?
wd at denx.de
Thu Jun 19 18:34:25 CEST 2003
In message <FD2AC9A020DDD51194710008C7089B20053D4C90 at dlee17.itg.ti.com> you wrote:
> Is there any "correct" convention for the value eth_init() is supposed to
> return? grep'ing/cscop'ing the code seems to indicate that there
Return 0 for success, -1 for error.
> isn't.....what should it be.... if there is no consistent return then
> perhaps it should be changed to return a void. Being silly, I checked for
> errors and tried to report them back, unfortunately none of the upstream
> users check for errors. Thankfully, the control^c now works for me.
You are right, there is little error checking in place as is, but we
should keep this option open.
> Content-Type: text/html
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
Please do not send HTML messages.
Please send plain text only.
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de
The most exciting phrase to hear in science, the one that heralds new
discoveries, is not "Eureka!" (I found it!) but "That's funny ..."
-- Isaac Asimov
More information about the U-Boot