[U-Boot] [PATCH 10/12] plb2800: Fix return values of plb2800_eth_initialize ()

Mike Frysinger
2010-01-24T10:58:37Z

On Sunday 24 January 2010 05:07:55 Matthias Kaehlcke wrote:
> --- a/drivers/net/plb2800_eth.c
> +++ b/drivers/net/plb2800_eth.c
> @@ -106,7 +106,7 @@ int plb2800_eth_initialize(bd_t * bis)
> if (!(dev = (struct eth_device *) malloc (sizeof *dev)))
> {
> printf("Failed to allocate memory\n");
> - return -1;
> + return 0;
> }

this is an error path, thus current value is correct
-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/20100124/4fba7812/attachment.pgp