davinci_emac: fix comment for the _send function
PATCH 1/1 davinci_emac: fix comment for the _send function
The _send function should not return the length
of the transmitted packet.
See also
commit 76c4c9e48ffbe35490e1f7d3abcedc04934ac302
Author: Jan Luebbe <[email protected]> Date: Fri Sep 28 18:17:44 2012 +0200
davinci_emac: return 0 on successful transmit
Signed-off-by Antony Pavlov <[email protected]>
--- drivers/net/davinci_emac.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/davinci_emac.c +2 -2
@@ -387,8 +387,8 @@ static void davinci_emac_halt(struct eth_device *edev) }/* -* This function sends a single packet on the network and returns -* positive number (number of bytes transmitted) or negative for error +* This function sends a single packet on the network +* and returns 0 on successful transmit or negative for error */ static int davinci_emac_send (struct eth_device *edev,void *packet,int length) {
Signature · 7 lines
1.7.10.4 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Sascha Hauer
AppliedQuoted 5 lines · Antony Pavlov
The
_sendfunction should not return the length
of the transmitted packet.See also
Quoted 7 lines
commit
76c4c9e48ffbe35490e1f7d3abcedc04934ac302Author: Jan Luebbe <[email protected]> Date: Fri Sep 28 18:17:44 2012 +0200
davinci_emac: return 0 on successful transmitSigned-off-by Antony Pavlov <[email protected]>
Applied, thanks
Sascha
Quoted 28 lines
--- drivers/net/davinci_emac.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/net/davinci_emac.c +2
-2@@ -387,8 +387,8 @@ static void davinci_emac_halt(struct eth_device *edev) }/* -* This function sends a single packet on the network and returns -* positive number (number of bytes transmitted) or negative for error +* This function sends a single packet on the network +* and returns 0 on successful transmit or negative for error */ static int davinci_emac_send (struct eth_device *edev,void *packet,int length) {Signature · 7 lines
1.7.10.4 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Signature · 9 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox