summaryrefslogtreecommitdiff
path: root/drivers/net/altera_tse.c
diff options
context:
space:
mode:
authorJoachim Foerster <joachim.foerster@missinglinkelectronics.com>2011-10-17 05:24:46 +0000
committerWolfgang Denk <wd@denx.de>2011-10-26 21:29:08 +0200
commit70d52f9a4e661f00814ed2160bdedd3cc49aa44c (patch)
tree9c75580818cffc0b90dd91158df11ff1a2f87858 /drivers/net/altera_tse.c
parent15eb1069663676243a63a916fe482e751cd56deb (diff)
downloadu-boot-imx-70d52f9a4e661f00814ed2160bdedd3cc49aa44c.zip
u-boot-imx-70d52f9a4e661f00814ed2160bdedd3cc49aa44c.tar.gz
u-boot-imx-70d52f9a4e661f00814ed2160bdedd3cc49aa44c.tar.bz2
altera_tse: Fix return of eth_device's recv() callback
It seems to be good practice to return the number of received bytes in the eth_device's recv() callback, here: tse_eth_rx(). Signed-off-by: Joachim Foerster <joachim.foerster@missinglinkelectronics.com>
Diffstat (limited to 'drivers/net/altera_tse.c')
-rw-r--r--drivers/net/altera_tse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/altera_tse.c b/drivers/net/altera_tse.c
index 8b18ad0..5b00717 100644
--- a/drivers/net/altera_tse.c
+++ b/drivers/net/altera_tse.c
@@ -323,6 +323,8 @@ static int tse_eth_rx(struct eth_device *dev)
/* setup the sgdma */
alt_sgdma_do_async_transfer(priv->sgdma_rx, &rx_desc[0]);
+
+ return packet_length;
}
return -1;