]> git.sur5r.net Git - u-boot/blobdiff - cpu/mips/au1x00_eth.c
Blackfin: add workaround for anomaly 05000242
[u-boot] / cpu / mips / au1x00_eth.c
index 8ddc06a2d59b63040abc676519fb4d3abc2470c0..6272a3aac119dd34be822b0391fd680e844fb596 100644 (file)
@@ -283,7 +283,7 @@ int au1x00_enet_initialize(bd_t *bis){
 
        if ((dev = (struct eth_device*)malloc(sizeof *dev)) == NULL) {
                puts ("malloc failed\n");
-               return 0;
+               return -1;
        }
 
        memset(dev, 0, sizeof *dev);