Commit 70d52f9a authored by Joachim Foerster's avatar Joachim Foerster Committed by Wolfgang Denk
Browse files

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: default avatarJoachim Foerster <joachim.foerster@missinglinkelectronics.com>
parent 15eb1069
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment