From: Joachim Foerster Date: Mon, 17 Oct 2011 05:24:46 +0000 (+0000) Subject: altera_tse: Fix return of eth_device's recv() callback X-Git-Tag: v2011.12-rc1~427 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=70d52f9a4e661f00814ed2160bdedd3cc49aa44c;p=oweals%2Fu-boot.git 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 --- diff --git a/drivers/net/altera_tse.c b/drivers/net/altera_tse.c index 8b18ad0b0d..5b00717d11 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;