From: Mike Frysinger Date: Sun, 24 Jan 2010 05:58:37 -0500 Subject: [U-Boot] =?iso-8859-1?q?=5BPATCH_10/12=5D_plb2800=3A_Fix_return_v?= =?iso-8859-1?q?alues_of=09plb2800=5Feth=5Finitialize_=28=29?= In-Reply-To: <20100124100755.GP18402@darwin> References: <20100124100755.GP18402@darwin> Message-ID: <201001240558.37768.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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