Skip to contentSkip to conversation

au1x00_eth.c: Fixed a warning on pb1000 build.

PATCH New Shinya Kuribayashi 1 participant 1 message Oct 27, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 au1x00_eth.c: Fixed a warning on pb1000 build.

From: Shinya Kuribayashi <[email protected]>

au1x00_eth.c: In function 'au1x00_miiphy_write':
au1x00_eth.c:139: warning: 'return' with no value, in function returning non-void

---

 cpu/mips/au1x00_eth.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
cpu/mips/au1x00_eth.c +1 -1
index 23f2f94..d70c5fe 100644
@@ -136,7 +136,7 @@ int  au1x00_miiphy_write(char *devname, unsigned char addr,
 		udelay(1000);
 		if (--timedout == 0) {
 			printf("au1x00_eth: miiphy_write busy timeout!!\n");
-			return;
+			return -1;
 		}
 	}