diff options
author | Steven Rostedt (Red Hat) <rostedt@goodmis.org> | 2014-04-30 18:28:22 (GMT) |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2015-02-13 22:21:15 (GMT) |
commit | a7bb04e599dd691496b2b6ae179fc50db658e182 (patch) | |
tree | 4d1c8bcb5836ef481e8aeaa3620e29421649e26a /drivers/net/ethernet | |
parent | 8fca2ff3a8f5da52d4741e398f90b553eb74617e (diff) | |
download | linux-fsl-qoriq-a7bb04e599dd691496b2b6ae179fc50db658e182.tar.xz |
net: gianfar: Fix missing return of gfar_clean_tx_ring()
The patch "net: gianfar: do not try to cleanup TX packets if they are
not done" for 3.12-rt left out the return value for gfar_clean_tx_ring().
This would cause an error when building this module. Note, this module
does not build on x86 and was not tested because of that.
Reported-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/freescale/gianfar.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/freescale/gianfar.c b/drivers/net/ethernet/freescale/gianfar.c index 091945c..df27493 100644 --- a/drivers/net/ethernet/freescale/gianfar.c +++ b/drivers/net/ethernet/freescale/gianfar.c @@ -2615,6 +2615,7 @@ static int gfar_clean_tx_ring(struct gfar_priv_tx_q *tx_queue) tx_queue->dirty_tx = bdp; netdev_tx_completed_queue(txq, howmany, bytes_sent); + return howmany; } static void gfar_schedule_cleanup(struct gfar_priv_grp *gfargrp) |