Home Home > GIT Browse > openSUSE-42.3
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bogendoerfer <tbogendoerfer@suse.de>2018-01-11 11:55:23 +0100
committerThomas Bogendoerfer <tbogendoerfer@suse.de>2018-01-11 11:55:25 +0100
commit4ba91d543ae926ff0519b7db3975ffd652f53667 (patch)
treea7b565b64db7e17281c0e1deac75285945014d28
parent88fca35e0e93ad8c26aea5a7424107ca6a59c3df (diff)
net: mvneta: eliminate wrong call to handle rx descriptor error
-rw-r--r--drivers/net/ethernet/marvell/mvneta.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/marvell/mvneta.c b/drivers/net/ethernet/marvell/mvneta.c
index c3e587e483cc..b198bf829800 100644
--- a/drivers/net/ethernet/marvell/mvneta.c
+++ b/drivers/net/ethernet/marvell/mvneta.c
@@ -1963,9 +1963,9 @@ static int mvneta_rx_swbm(struct mvneta_port *pp, int rx_todo,
if (!mvneta_rxq_desc_is_first_last(rx_status) ||
(rx_status & MVNETA_RXD_ERR_SUMMARY)) {
+ mvneta_rx_error(pp, rx_desc);
err_drop_frame:
dev->stats.rx_errors++;
- mvneta_rx_error(pp, rx_desc);
/* leave the descriptor untouched */
continue;
}